/* =============================================
   Michael Gruber – Hundecoach | Stylesheet
   ============================================= */

:root {
  --primary:    #5B8C5A;
  --primary-dk: #3D6B3C;
  --secondary:  #C4704A;
  --accent:     #6BAED6;
  --sky:        #D4A84B;
  --bg:         #F7FAF7;
  --bg-alt:     #EEF4EE;
  --text:       #2C2C2C;
  --text-light: #5A5A5A;
  --white:      #FFFFFF;
  --shadow:     0 4px 20px rgba(0,0,0,.10);
  --radius:     14px;
  --radius-sm:  8px;
  --transition: .3s ease;
  --max-w:      1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.logo-sub {
  display: block;
  font-size: .72rem;
  color: var(--primary-dk);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: .2rem;
  align-items: center;
}
nav a {
  display: block;
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
nav a:hover,
nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #EAF2EA 0%, #D6E8D6 50%, #E8F0F8 100%);
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: .18;
}
.hero-bg-shapes span:nth-child(1) { width: 500px; height: 500px; background: var(--primary); top: -150px; right: -100px; }
.hero-bg-shapes span:nth-child(2) { width: 300px; height: 300px; background: var(--secondary); bottom: -80px; left: -60px; }
.hero-bg-shapes span:nth-child(3) { width: 200px; height: 200px; background: var(--sky); top: 60%; right: 20%; }

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 30px;
  padding: .35rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-dk);
  margin-bottom: 1.2rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 480px;
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }

/* Hero images */
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-img-card:first-child {
  grid-column: 1 / -1;
  height: 260px;
}
.hero-img-card:not(:first-child) { height: 180px; }
.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid rgba(255,255,255,.4);
  pointer-events: none;
}

/* ── Section defaults ── */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary-dk);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 3rem;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ── Stats bar ── */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item { color: var(--white); }
.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}
.stat-label { font-size: .9rem; opacity: .9; font-weight: 600; }

/* ── Service cards ── */
.services-bg { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--primary);
}
.service-card:nth-child(2) { border-color: var(--secondary); }
.service-card:nth-child(3) { border-color: var(--accent); }
.service-card:nth-child(4) { border-color: var(--sky); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.14); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
}
.service-card:nth-child(1) .service-icon { background: #DAE8DA; }
.service-card:nth-child(2) .service-icon { background: #F2E2D8; }
.service-card:nth-child(3) .service-icon { background: #D8E8F4; }
.service-card:nth-child(4) .service-icon { background: #F4EDD8; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .6rem; }
.service-card p { color: var(--text-light); font-size: .95rem; }

/* ── About preview ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: .8rem;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img:first-child { grid-column: 1 / -1; }
.checkmark-list { margin: 1.5rem 0 2rem; }
.checkmark-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .8rem;
  font-size: .98rem;
}
.checkmark-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .8rem;
  margin-top: .1rem;
}

/* ── Gallery preview ── */
.gallery-bg { background: var(--bg-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 700; font-size: .9rem; }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: .8rem; left: 1.2rem;
  font-size: 4rem;
  color: var(--primary);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: .3;
}
.stars { color: var(--primary); font-size: 1.1rem; margin-bottom: .8rem; }
.testimonial-card p { color: var(--text-light); font-style: italic; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: .95rem; }
.author-dog { font-size: .82rem; color: var(--text-light); }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, #3D6B3C 0%, #2A5029 100%);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-section h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-section .btn-outline { border-color: var(--white); color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--primary-dk); }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .85rem; color: var(--text-light); margin-bottom: .1rem; }
.contact-item span { font-weight: 600; font-size: .98rem; }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}
label .required { color: var(--accent); margin-left: .2rem; }
input, select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #E8E8E8;
  border-radius: var(--radius-sm);
  font-size: .97rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
textarea { resize: vertical; min-height: 120px; }
.checkbox-group { display: flex; gap: .75rem; align-items: flex-start; }
.checkbox-group input[type="checkbox"] {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--primary);
}
.checkbox-group label { font-size: .88rem; font-weight: 400; color: var(--text-light); cursor: pointer; }
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--secondary);
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ── Footer ── */
footer {
  background: #1E1E1E;
  color: #CCCCCC;
  padding: 3.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-logo .logo-icon { background: var(--primary); }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-sub { color: var(--primary); }
footer p { font-size: .9rem; line-height: 1.7; color: #AAAAAA; }
.footer-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { color: #AAAAAA; font-size: .9rem; text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #888;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: #888; text-decoration: none; }
.footer-legal a:hover { color: var(--primary); }

/* ── Page hero (Unterseiten) ── */
.page-hero {
  background: linear-gradient(135deg, #EAF2EA 0%, #D6E8D6 50%, #E8F0F8 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: var(--primary);
  border-radius: 50%;
  opacity: .1;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: .8rem; position: relative; z-index: 1; }
.page-hero p { font-size: 1.1rem; color: var(--text-light); position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.breadcrumb a { color: var(--primary-dk); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #CCC; }

/* ── Leistungen page ── */
.leistungen-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.leistung-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.leistung-block h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.leistung-block ul { color: var(--text-light); font-size: .95rem; }
.leistung-block ul li { padding: .4rem 0; padding-left: 1.2rem; position: relative; }
.leistung-block ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.price-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  padding: .3rem .9rem;
  font-size: .85rem;
  font-weight: 700;
  margin-top: 1rem;
}

/* ── Galerie page ── */
.gallery-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.gallery-full .gallery-item { aspect-ratio: 4/3; }

/* ── Über mich ── */
.about-full { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.about-photo img { width: 100%; }
.qualifikationen { margin-top: 2rem; }
.qual-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  align-items: flex-start;
}
.qual-icon { font-size: 1.5rem; flex-shrink: 0; }
.qual-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.qual-item p { font-size: .9rem; color: var(--text-light); }

/* ── Impressum / Datenschutz ── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-content h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .8rem; color: var(--text); }
.legal-content h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .6rem; }
.legal-content p, .legal-content li { color: var(--text-light); line-height: 1.8; margin-bottom: .7rem; font-size: .97rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: var(--primary-dk); }
.legal-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  nav.open { max-height: 500px; }
  nav ul { flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: .3rem; }
  nav a { padding: .65rem 1rem; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-images { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 3.5rem 1.5rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-images { grid-template-rows: 200px; }
  .about-images .about-img:not(:first-child) { display: none; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

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

  .leistungen-detail { grid-template-columns: 1fr; }
  .about-full { grid-template-columns: 1fr; }
  .about-photo { position: static; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 3.5rem 1rem; }
  .contact-form { padding: 1.5rem; }
}

/* ── Focus styles (accessibility) ── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Print ── */
@media print {
  header, footer, .hero-images, .cta-section { display: none; }
}
