/* ============================================
   Tierarztpraxis Dallmin – Static Site Theme
   ============================================ */

/* --- Local Fonts --- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/merriweather-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/merriweather-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* --- Skip Navigation --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  color: #fff;
}

:root {
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-primary-light: #4caf50;
  --color-accent: #f9a825;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f5;
  --color-bg-dark: #1a2e1a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-on-dark: #e8f5e9;
  --color-border: #dce5dc;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Merriweather', serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

/* --- Global Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.service-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.3;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* ========================
   HEADER / NAVIGATION
   ======================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================
   ANNOUNCEMENT BANNER
   ======================== */
.announcement-banner {
  background: #fff3cd;
  border-bottom: 2px solid #ffc107;
  color: #856404;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
}

.announcement-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.announcement-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.announcement-text p {
  margin: 0;
}

.announcement-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #856404;
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.announcement-close:hover {
  opacity: 1;
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  background: var(--color-accent);
  color: #163316;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.hero .btn-primary:hover {
  background: #fbc02d;
  box-shadow: 0 4px 16px rgba(249, 168, 37, 0.4);
}

/* ========================
   ABOUT PREVIEW
   ======================== */
.about-preview {
  background: var(--color-bg);
  text-align: center;
}

.about-preview h2 {
  margin-bottom: 1.5rem;
}

.about-preview .lead {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  color: var(--color-text-light);
}

.about-preview p {
  max-width: 800px;
  margin: 0 auto 1rem;
}

/* ========================
   SERVICE CARDS
   ======================== */
.services-section {
  background: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  color: var(--color-text);
}

.service-icon {
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-primary);
  font-weight: 600;
}

.service-card:hover .card-link {
  color: var(--color-primary-dark);
}

/* ========================
   AKTUELLES SECTION
   ======================== */
.aktuelles-section {
  background: var(--color-bg-alt);
}

.aktuelles-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.aktuelles-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.aktuelles-card.no-image {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.aktuelles-card.no-image .aktuelles-content {
  padding: 2rem 2.5rem;
}

.aktuelles-content {
  padding: 2rem 2.5rem 2rem 0;
}

.aktuelles-content h2 {
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.aktuelles-content p {
  margin-bottom: 0.8rem;
  line-height: 1.7;
}

/* ========================
   PAGE CONTENT (single pages)
   ======================== */
.page-content {
  padding: 3rem 0 4rem;
}

.page-content h1 {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-primary-light);
}

.content-body {
  max-width: 900px;
  margin: 0 auto;
}

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.content-body h3 {
  margin-top: 1.5rem;
}

.content-body ul, .content-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-body li {
  margin-bottom: 0.3rem;
}

/* ========================
   TEAM PAGE
   ======================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.team-card .team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-primary-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  font-family: var(--font-heading);
}

.team-card .team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--color-primary-light);
}

.team-card h3 {
  margin-bottom: 0.3rem;
}

.team-card .role {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.team-card .details {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ========================
   SERVICES PAGE (Kleintiere / Großtiere)
   ======================== */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-item {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--color-primary);
}

.service-item.has-description {
  cursor: pointer;
}

.service-item h4 {
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
}

.service-item .toggle-icon {
  font-size: 0.6em;
  transition: transform 0.25s ease;
  display: inline-block;
  color: var(--color-text-light, #999);
}

.service-item.open .toggle-icon {
  transform: rotate(90deg);
}

.service-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  text-align: left;
  font-size: 0.95rem;
  color: var(--color-text, #555);
  margin-top: 0;
}

.service-item.open .service-description {
  max-height: 300px;
  margin-top: 1rem;
}

.service-description p {
  margin: 0.25rem 0;
}

.service-description ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0;
}

.service-description ul li {
  margin: 0.2rem 0;
}

/* ========================
   CONTACT PAGE
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-card {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 2rem;
}

.contact-info-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table td {
  padding: 0.4rem 0;
}

.hours-table td:first-child,
.hours-table th {
  font-weight: 600;
  padding-right: 1rem;
  white-space: nowrap;
}

.hours-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: inherit;
  color: inherit;
}

/* Contact form */
.contact-form {
  background: var(--color-bg-alt);
  border-radius: 12px;
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
  outline: 2px solid var(--color-primary);
  outline-offset: -1px;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 50px;
  margin-bottom: 0.5rem;
  filter: brightness(10);
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}

.footer-col h4:first-child {
  margin-top: 0;
}

.footer-col p,
.footer-col a {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col .hours-table td,
.footer-col .hours-table th {
  color: var(--color-text-on-dark);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.footer-links a {
  color: var(--color-text-on-dark);
}

.footer-links a:hover {
  color: #fff;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .aktuelles-card {
    grid-template-columns: 1fr;
  }

  .aktuelles-content {
    padding: 1.5rem;
  }

  .aktuelles-image img {
    min-height: 200px;
    max-height: 300px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .services-grid,
  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .announcement-banner {
    font-size: 0.85rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
  }

  .team-card .team-photo {
    width: 100px;
    height: 100px;
  }

  .team-card .team-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .contact-info-card {
    padding: 1.25rem;
  }
}
