/* ============================================================
   SOMSOL – style.css
   Design: Grün-Akzent, sauber, modern, vollständig responsive
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green:        #3a7a3a;
  --green-dark:   #2c5f2c;
  --green-light:  #e8f5e8;
  --green-mid:    #5a9a5a;
  --text:         #1a1a1a;
  --text-muted:   #555;
  --bg-light:     #f7f9f7;
  --bg-white:     #ffffff;
  --border:       #d4e8d4;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --radius:       10px;
  --radius-lg:    16px;
  --nav-h:        68px;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition:   .25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

/* #top-Anker soll wirklich ganz oben landen, ohne nav-Offset */
#top {
  scroll-margin-top: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); text-decoration: underline; }

address { font-style: normal; }

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.bg-white { background: var(--bg-white); }
.bg-light  { background: var(--bg-light); }

.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-quote {
  font-size: 1rem;
  color: var(--text-muted);
  border-left: 3px solid var(--green);
  padding: .75rem 1.25rem;
  margin-bottom: 2.5rem;
  font-style: italic;
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,.45);
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-outline:hover {
  background: rgba(255,255,255,.7);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.btn-full { width: 100%; }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--green);
  padding: 1rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  display: none;
}
#cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-inner p { flex: 1; min-width: 200px; font-size: .9rem; color: var(--text-muted); }
.cookie-inner p a { color: var(--green); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.logo-text small  { font-size: .7rem; color: var(--text-muted); }

header nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
header nav a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover { background: var(--green-light); color: var(--green-dark); text-decoration: none; }

.nav-cta { flex-shrink: 0; }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none; background: none; cursor: pointer;
  margin-left: auto;
  padding: 6px;
}
.burger span {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: var(--shadow-md);
  z-index: 99;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .6rem .75rem;
  border-radius: 6px;
}
.mobile-nav a:hover { background: var(--green-light); text-decoration: none; }
.mobile-nav .btn { margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--green-dark);
  max-width: 720px;
}

.hero-label {
  display: inline-block;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 99px;
  padding: .3rem 1rem;
  font-size: .85rem;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--green-dark);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--green-dark);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ---------- Über uns ---------- */
.ueber-badge-center {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.badge-logo {
  border-radius: 8px;
  transition: opacity .2s;
}
.badge-logo:hover { opacity: .85; }

.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ueber-left h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.ueber-left p { color: var(--text-muted); margin-bottom: 1rem; }

blockquote {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
  font-style: italic;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card-label {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--green-dark);
}
.card p { color: var(--text-muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-body { padding: 1.5rem; }

.service-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--text);
}

.service-quote {
  font-size: .85rem;
  color: var(--green-dark);
  font-style: italic;
  margin-bottom: 1rem;
  border-left: 3px solid var(--green);
  padding-left: .75rem;
}

.service-body ul { display: flex; flex-direction: column; gap: .35rem; }
.service-body li {
  font-size: .9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}
.service-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: .75rem; }

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.benefit-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- Team ---------- */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  width: 240px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-card img {
  width: 120px; height: 120px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin: 1.5rem auto 1rem;
  border: 3px solid var(--green-light);
}

.team-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; padding-inline: 1rem; }
.team-card a  { font-size: .82rem; color: var(--green); display: block; padding: 0 1rem 1.5rem; word-break: break-word; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.kontakt-detail { margin-bottom: 1.5rem; }
.kontakt-detail h3 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.kontakt-detail a, .kontakt-detail address { color: var(--text-muted); font-size: .95rem; }
.kontakt-detail a:hover { color: var(--green); }

.kontakt-photo-wrap {
  display: flex;
  justify-content: center;
}

.kontakt-photo {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  object-position: top;
  max-height: 460px;
}

/* ---------- Social Links ---------- */

/* Nav (Desktop) */
.nav-social {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.nav-social a:hover {
  color: var(--green);
  background: var(--green-light);
  text-decoration: none;
}

/* Mobile Nav */
.mobile-social {
  display: flex;
  gap: 1rem;
  padding: .25rem .75rem;
}
.mobile-social a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.mobile-social a:hover {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
}

/* Kontakt-Sektion */
.kontakt-social {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .25rem;
}
.kontakt-social a {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .95rem;
  transition: color var(--transition);
}
.kontakt-social a:hover { color: var(--green); text-decoration: none; }

/* Footer */
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* ---------- Footer ---------- */
footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text small  { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.55); margin-top: .5rem; line-height: 1.6; }

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col li a, .footer-col address p a {
  color: rgba(255,255,255,.6);
  font-size: .875rem;
  transition: color var(--transition);
}
.footer-col li a:hover, .footer-col address a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-col address p { margin-bottom: .4rem; font-size: .875rem; color: rgba(255,255,255,.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.25rem;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-bottom p a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom p a:hover { color: #fff; text-decoration: none; }

/* ---------- Subpages (Impressum / Datenschutz) ---------- */
.subpage-hero {
  background: var(--green-light);
  padding-block: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.subpage-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--text); }
.subpage-hero p  { color: var(--text-muted); margin-top: .5rem; }

.subpage-content {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.subpage-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .6rem; color: var(--text); }
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content p  { color: var(--text-muted); margin-bottom: .9rem; line-height: 1.7; }
.subpage-content ul { list-style: disc; padding-left: 1.4rem; color: var(--text-muted); margin-bottom: .9rem; }
.subpage-content ul li { margin-bottom: .4rem; }
.subpage-content a { color: var(--green); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .benefits-grid  { grid-template-columns: 1fr 1fr; }
  .ueber-grid     { grid-template-columns: 1fr; }
  .kontakt-grid   { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  :root { --nav-h: 60px; }

  header nav, .nav-cta { display: none; }
  .burger { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .team-grid     { gap: 1rem; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { text-align: center; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
}

@media (max-width: 420px) {
  .section-title { font-size: 1.5rem; }
  .team-card { width: 100%; max-width: 300px; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

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