/* ===================================================================
 * SMARTEC theme, version 2 (Der SmartTec, Schwaebisch Hall)
 *
 * Own theme for SMARTEC: brand blue (logo) as accent, brand green only as
 * a surface (menu bar, strokes), never as text colour on a light ground
 * (2.5:1). System font, square corners, no cards, no soft shadows, no emoji.
 * Version 0.7.2 (27.11.2026): wider page (1400 px), services and contact in columns.
 * Version 0.7.0 (27.11.2026): smaller headline, green bar under the banner
 * as in the original site, phones with outline. No coloured side or top
 * stripes on elements (AI tell, forbidden); green stays on the one bar.
 * Version 2 follows the layout of the original site that the operator
 * likes: circuit-board banner with logo and opening hours on top, menu
 * on the left, the three phones as the entrance to the price lists.
 *
 * Rules that bind: editorial-pro/SPECIFICATION.md, node build-public-website,
 * Buglog #1138, #1175, #1185 (every state needs readable contrast).
 * ================================================================== */

:root {
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #0c0c0c;
  --text-secondary: #5a5a5a;
  --on-accent: #ffffff;
  --hairline-strong: #1a1a1a;
  --hairline-weak: #d0d0d0;
  --row-hover: #eef0f7;

  /* SMARTEC brand blue (from the logo) - the ONE accent colour */
  --accent: #2d2980;
  /* SMARTEC brand green (logo, old site): surface only. Text on it is near-black, 7.2:1 */
  --brand-green: #5ab130;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}

/* ===== Reset + base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
/* Plain links get the underline and the dark colour only on hover. Scoped to
   the content areas and without .st-btn, so a button never loses its own colours
   to this rule (cascade clobber, Buglog #1185). */
.st-main a:not(.st-btn):hover, .st-contact a:hover, .st-footer a:hover { text-decoration: underline; }
.st-main a:not(.st-btn):hover { color: var(--text); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Banner: circuit board with logo, opening hours on a plate ===== */
.st-banner-wrap { max-width: 1400px; margin: 0 auto; }
.st-banner {
  position: relative;
  aspect-ratio: 1600 / 228;
  background: var(--bg) url("images/header-platine.webp") no-repeat left center / 100% 100%;
}
/* The whole left part of the banner (the logo) leads to the start page. */
.st-banner-home { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; }
/* The picture fades into the page colour right of the logo (tools/make-header-image.sh,
   complete at 60 percent of the width), so the opening hours stand there as plain text
   without a box. The burnt-in hours of the old picture are gone with that fade. */
.st-plate {
  position: absolute;
  left: 64%;
  right: 1.5rem;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(0.72rem, 1.3vw, 1rem);
  line-height: 1.45;
}
.st-plate strong { font-weight: 700; }
.st-plate a { font-weight: 700; font-size: 1.35em; margin-top: 0.3em; font-variant-numeric: tabular-nums; }
.st-plate a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 760px) {
  /* Narrow screens: banner crops to the logo, the plate moves below as a bar. */
  .st-banner {
    aspect-ratio: auto;
    height: 110px;
    max-width: 440px;
    background-size: auto 100%;
  }
  .st-plate {
    position: static;
    border: 0;
    border-bottom: 1px solid var(--hairline-strong);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 1.2rem;
    background: var(--bg);
  }
  .st-banner-home { width: 100%; }
}

/* ===== Green bar under the banner (as in the original site) ===== */
.st-topbar { background: var(--brand-green); border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.st-topbar ul { display: flex; flex-wrap: wrap; list-style: none; }
.st-topbar a { display: block; padding: 0.65rem 1.4rem 0.65rem 0; margin-right: 0.4rem; color: var(--text); font-weight: 700; }
.st-topbar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-topbar a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 520px) { .st-topbar a { padding-right: 0.8rem; font-size: 0.95rem; } }

/* ===== Layout: menu left, content right ===== */
.st-layout {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
@media (max-width: 800px) {
  .st-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.2rem; }
}

/* ===== Menu (always visible, no toggle button) ===== */
.st-menu { align-self: start; }
.st-menu-title { font-weight: 700; margin: 1rem 0 0.2rem; }
.st-menu ul { list-style: none; }
.st-menu a {
  display: block;
  padding: 0.35rem 0.5rem;
  margin-inline: -0.5rem;
  color: var(--text);
}
.st-menu a:hover { background: var(--row-hover); color: var(--accent); }
.st-menu a[aria-current="page"] { font-weight: 700; color: var(--accent); }
@media (max-width: 800px) {
  .st-menu { border-bottom: 1px solid var(--hairline-weak); padding-bottom: 0.6rem; }
}

/* ===== Content ===== */
.st-main { min-width: 0; }
.st-title { font-size: 1.8rem; line-height: 1.2; margin-bottom: 0.8rem; max-width: 34ch; }
.st-h2 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 0.8rem; }
.st-h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.st-lead { font-size: 1.1rem; color: var(--text-secondary); max-width: 62ch; margin-bottom: 1rem; }
.st-text { max-width: 62ch; margin-bottom: 1rem; }
.st-note { font-size: 0.9rem; color: var(--text-secondary); max-width: 62ch; }
.st-anchornav { margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.st-anchornav a { margin-right: 1.2rem; }
@media (max-width: 700px) { .st-title { font-size: 1.5rem; } }

/* Start page: services side by side and contact next to the form, so the wide
   content column is used instead of one narrow text strip (operator, 27.11.2026). */
.st-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; margin-top: 1rem; }
.st-services .st-text { max-width: none; }
.st-contact-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2rem 3rem; margin-top: 3rem; }
.st-contact-section .st-form { max-width: none; }
.st-contact-section .st-contact { grid-template-columns: 1fr; }

/* ===== Phones: entrance to the price lists ===== */
.st-brands { margin-bottom: 2.5rem; }
.st-phones { display: flex; flex-wrap: wrap; gap: 2rem 3rem; list-style: none; margin-top: 1rem; }
.st-phones a { display: block; color: var(--text); background: var(--bg-card); border: 1px solid var(--hairline-strong); padding: 0.8rem 1.4rem 1rem; }
.st-phones .name { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.4rem; }
.st-phones img { display: block; width: 110px; height: auto; }
.st-phones a:hover .name { color: var(--accent); text-decoration: underline; }

/* Device overview (Apple): same entrance, pictures of different shapes, aligned on one baseline */
.st-devices { align-items: flex-end; gap: 2.5rem 3.5rem; }
.st-devices img { width: auto; height: 170px; max-width: 100%; }

/* ===== Buttons (square) ===== */
.st-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.st-btn:hover { background: var(--text); color: var(--bg); }
.st-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--on-accent); }
.st-btn:focus-visible, .st-menu a:focus-visible, .st-plate a:focus-visible, .st-phones a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Contact ===== */
.st-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; margin-top: 1rem; }
@media (max-width: 700px) { .st-contact { grid-template-columns: 1fr; gap: 1.2rem; } }
.st-contact dt { font-weight: 700; margin-bottom: 0.2rem; }
.st-contact dd { margin: 0 0 0.6rem; color: var(--text-secondary); }
.st-contact dd a { color: var(--accent); }
.st-addr { font-style: normal; line-height: 1.7; }

/* ===== Contact form (square, hairline, visible focus) ===== */
.st-form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.5rem; }
.st-form-row label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }
.st-form input, .st-form textarea {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--hairline-strong); border-radius: 0;
}
.st-form textarea { min-height: 8rem; resize: vertical; }
.st-form input:focus, .st-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.st-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-form-title { font-size: 1.15rem; margin-top: 2rem; }
.st-form-note { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Technical data (mono) and price tables ===== */
.st-tech { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-secondary); }
.st-table-wrap { overflow-x: auto; margin: 1.5rem 0 1rem; }
.st-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.st-table caption { text-align: left; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.6rem; }
.st-table th, .st-table td { padding: 0.55rem 0.9rem; text-align: left; border-bottom: 1px solid var(--hairline-weak); white-space: nowrap; }
.st-table thead th { border-bottom: 2px solid var(--hairline-strong); font-weight: 700; }
.st-table td { font-family: var(--font-mono); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.st-table th:first-child, .st-table td:first-child { white-space: normal; min-width: 8rem; }
.st-table td:first-child { font-family: var(--font-body); color: var(--text); font-weight: 600; }
.st-table tbody tr:hover { background: var(--row-hover); }
.st-pricenote { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.3rem; }

/* ===== Footer (two lines) ===== */
.st-footer { background: var(--text); color: var(--bg); padding: 2rem 0; font-size: 0.9rem; }
.st-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; }
.st-footer a { color: var(--bg); text-decoration: none; margin-left: 1.2rem; }
