/* ==========================================================================
   Kleintierpraxis Silke Hartmann – Stylesheet
   ========================================================================== */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo-2-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo-2-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo-2-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/baloo-2-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --green: #64e7aa;        /* Hauptfarbe 100 % */
  --green-80: #83ecbb;     /* 80 % – Kontakt */
  --green-60: #a2f1cc;     /* 60 % – Header */
  --green-20: #e0faee;     /* 20 % – Leistungen */
  --green-dark: #22825e;   /* Dunkelgrün – Navigation, Überschriften, Buttons */

  --text: #111111;
  --white: #ffffff;

  --font: "Baloo 2", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1100px;
  --content: 1000px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* sticky nav height */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
}

h1, h2, h3, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.content {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.accent {
  color: var(--green-dark);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--green-60);
  padding: 28px 0 22px;
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
}

.logo img {
  width: 200px;
}

.brand {
  line-height: 1.15;
}
.brand-name {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.15;
}
.brand-title {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
}
.brand-sub {
  font-size: 1.875rem;
  font-weight: 600;
}

.header-info {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}
.header-info strong {
  font-weight: 600;
}

.hours {
  border-collapse: collapse;
}
.hours td {
  padding: 0 12px 0 0;
  vertical-align: top;
}
.hours tr.gap td {
  padding-top: 6px;
}

.house-calls {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.emergency p + p {
  margin-top: 6px;
}
.emergency a {
  color: inherit;
  text-decoration: none;
}
.emergency a:hover {
  text-decoration: underline;
}
.emergency .label {
  display: inline-block;
  min-width: 3.5em;
}

/* ---------- Navigation ---------- */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-dark);
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 12px 26px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a::before {
  content: "| ";
}
.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  color: var(--green);
}

.nav-burger {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 34px solid var(--green);
  background: var(--white);
}
.hero img {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-dark);
}

.section-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Intro / Praxis */
.intro .lead {
  margin-top: 40px;
}
.intro .lead strong {
  font-weight: 600;
}
.intro .highlight {
  margin-top: 28px;
  font-weight: 700;
  color: var(--green-dark);
}

/* Leistungen */
.services {
  background: var(--green-20);
}

.service-list {
  margin-top: 36px;
}
.service + .service {
  margin-top: 28px;
}
.service h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.notice {
  margin-top: 36px;
  font-weight: 600;
}
.notice strong {
  display: block;
  font-weight: 700;
  color: var(--green-dark);
}

.divider {
  width: 60%;
  height: 1px;
  margin: 36px auto;
  border: 0;
  background: var(--green);
}

.download-text {
  font-weight: 600;
}

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--green-dark);
  color: var(--white);
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  transition: background-color 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  background: #1a6a4c;
}

/* Kontakt */
.contact {
  background: var(--green-80);
  padding: 32px 0 48px;
}
.contact .section-title {
  font-size: 1.75rem;
  font-weight: 400;
}
.contact address {
  margin-top: 8px;
  font-style: normal;
}
.contact address strong {
  font-weight: 700;
}
.contact address a {
  color: inherit;
  text-decoration: none;
}
.contact address a:hover {
  text-decoration: underline;
}
.contact .sep {
  margin: 0 0.6em;
}

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 0;
  font-size: 0.9rem;
  text-align: center;
}
.site-footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 10px;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Legal pages (Impressum / Datenschutz) */
.legal {
  padding: 56px 0 72px;
}
.legal .content {
  text-align: left;
}
.legal h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  hyphens: manual;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 28px 0 8px;
}
.legal h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 22px 0 6px;
}
.legal h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 16px 0 4px;
}
.legal p + p,
.legal ul + p {
  margin-top: 10px;
}
.legal ul {
  margin: 10px 0 0;
  padding-left: 1.3em;
}
.legal li + li {
  margin-top: 6px;
}
.legal .caps {
  font-size: 0.95rem;
}
.legal a {
  overflow-wrap: anywhere;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .header-info {
    grid-column: span 1;
  }
  .nav-list a {
    padding: 12px 16px;
  }
}

@media (max-width: 760px) {
  .house-calls { white-space: normal; }
  html {
    scroll-padding-top: 56px;
  }

  .site-header {
    padding: 20px 0;
  }
  .header-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 18px;
  }
  .logo img {
    width: 150px;
  }
  .brand-name,
  .brand-sub {
    font-size: 1.6rem;
  }
  .hours {
    margin: 0 auto;
    text-align: left;
  }

  /* Mobile menu (CSS-only toggle) */
  .nav-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }
  .nav-burger span,
  .nav-burger span::before,
  .nav-burger span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: transform 0.2s ease;
  }
  .nav-burger span::before,
  .nav-burger span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-burger span::before { top: -7px; }
  .nav-burger span::after  { top: 7px; }

  .nav-list {
    display: none;
    flex-direction: column;
    text-align: center;
    padding-bottom: 8px;
  }
  .nav-list a::before {
    content: "";
  }
  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }
  .nav-toggle:checked + .nav-burger span { background: transparent; }
  .nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span::after  { transform: translateY(-7px) rotate(-45deg); }

  .hero {
    border-bottom-width: 20px;
  }

  .section {
    padding: 40px 0;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .intro .lead br,
  .notice br {
    display: none;
  }
  .contact .sep {
    display: none;
  }
  .contact .phone {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
