/* ============================================================
   JUHL STEUERBERATER — Stylesheet
   ============================================================
   Farben:
     --red   #DC143E   (Markenrot)
     --dark  #454543   (Dunkelgrau / Haupttext)
     --mid   #6e6d6b   (mittlerer Text)
     --light #9a9996   (dezenter Text)

   Schriften:
     Raleway  — Überschriften, Labels, Navigation
     Lato     — Fließtext, Kontaktdaten

   Seiten-Routing läuft über js/main.js
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ── CSS-Variablen ──────────────────────────────────────────── */
:root {
  --red:    #DC143E;   /* Juhl Markenrot        */
  --dark:   #454543;   /* Haupttext / Dunkelgrau */
  --mid:    #6e6d6b;   /* Sekundärtext           */
  --light:  #9a9996;   /* Dezenter Text          */
  --bg:     #ffffff;   /* Seitenhintergrund      */
  --bgsoft: #f7f7f6;   /* Helles Grau (Boxen)    */
  --bgline: #ededec;   /* Trennlinien / Rahmen   */
}

/* ── Reset & Basis ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--bgline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
}

.nav-brand {
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-brand img {
  height: 22px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0;
}

.nav-links button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--mid);
  font-family: 'Raleway', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 1.4rem;
  height: 60px;
  margin-bottom: -1px;
  transition: color .2s;
}

.nav-links button:hover         { color: var(--dark); }
.nav-links button.active        { color: var(--red); border-bottom-color: var(--red); }

/* ── Seiten-Sichtbarkeit ─────────────────────────────────────── */
.page              { display: none; flex-direction: column; flex: 1; }
.page.active       { display: flex; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 5.5rem;
  gap: 3rem;
  border-bottom: 1px solid var(--bgline);
}

.hero-logo    { height: 48px; display: block; }
.hero-claim   { height: 28px; display: block; opacity: .85; }

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-top: -.5rem;
}

/* ── Kontakt-Bereich ─────────────────────────────────────────── */
.contact-section {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 5rem 2rem 4rem;
}

.section-label {
  font-family: 'Raleway', sans-serif;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .55rem;
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 3rem;
  letter-spacing: .02em;
}

/* Kontakt-Karten-Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bgline);
  border: 1px solid var(--bgline);
}

.contact-card {
  background: #fff;
  padding: 2rem 1.8rem;
}

.contact-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 1.2rem;
}

.contact-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.9;
  text-decoration: none;
  display: block;
  font-weight: 300;
}

.contact-card a:hover { color: var(--red); }

/* Öffnungszeiten */
.hours-block {
  margin-top: 1px;
  background: var(--bgsoft);
  border: 1px solid var(--bgline);
  border-top: none;
  padding: 2rem 1.8rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.hours-block h3 {
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: .9rem;
}

.hours-block p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 2;
  font-weight: 300;
}

.hours-divider {
  width: 1px;
  background: var(--bgline);
  align-self: stretch;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 1.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: auto;
}

footer p {
  font-size: .72rem;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .06em;
  font-weight: 300;
}

.footer-links { display: flex; gap: 2rem; }

.footer-links button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
  font-family: 'Raleway', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0;
  transition: color .2s;
}

.footer-links button:hover { color: var(--red); }

/* ── Unterseiten (Impressum / Datenschutz) ──────────────────── */
.subpage-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
  flex: 1;
}

.subpage-content h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bgline);
  letter-spacing: .02em;
}

/* roter Akzent-Strich unter h1 */
.subpage-content h1 span {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
  margin-top: .9rem;
}

.subpage-content h2 {
  font-family: 'Raleway', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 2.5rem 0 .7rem;
}

.subpage-content p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: .5rem;
  font-weight: 300;
}

.subpage-content a {
  color: var(--red);
  text-decoration: none;
}

.subpage-content a:hover { text-decoration: underline; }

.subpage-content ul {
  padding-left: 1.2rem;
  font-size: .9rem;
  line-height: 2;
  color: var(--mid);
  margin-bottom: .5rem;
  font-weight: 300;
}

.subpage-content hr {
  border: none;
  border-top: 1px solid var(--bgline);
  margin: 2.5rem 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0;
  transition: color .2s;
}

.back-btn:hover { color: var(--red); }
.back-btn svg   { width: 12px; height: 12px; }

/* Datumszeile am Ende der Datenschutzseite */
.meta-note {
  margin-top: 3rem;
  font-size: .78rem;
  color: var(--light);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav                     { padding: 0 1.2rem; }
  .hero                   { padding: 4rem 1.5rem; gap: 2.2rem; }
  .hero-logo              { height: 36px; }
  .hero-claim             { height: 22px; }
  .contact-section        { padding: 3rem 1.2rem; }
  .contact-grid           { grid-template-columns: 1fr; }
  .hours-block            { flex-direction: column; gap: 1.5rem; }
  .hours-divider          { display: none; }
  footer                  { padding: 1.2rem; }
  .subpage-content        { padding: 3rem 1.2rem 4rem; }
}
