/* ================================================================
   KANZLEI LINDEN – Stylesheet
   Breakpoints: mobile < 640px | tablet 641–900px | desktop > 900px
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #4aabba;
  --teal-dark:  #3a95a4;
  --teal-light: #5bbfce;
  --white:      #ffffff;
  --text:       #333333;
  --border:     #dddddd;
  --orange:     #c8701a;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--teal);
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.hero-logo {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 20px 40px;
  width: 100%;
  max-width: 760px;
}
.hero-logo img { width: 100%; height: auto; display: block; }

/* Portrait – inside home page content card */
.hero-portrait {
  width: calc(100% + 100px);
  margin: -40px -50px 28px -50px;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── NAVIGATION ── */
nav {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Hero below nav – not sticky */
.hero { position: relative; }

/* Nav inner wrapper – matches content-card width */
.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: stretch;
}

/* Hamburger – hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 0;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-toggle-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle-icon span {
  display: block; height: 2px; background: #444;
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open .nav-toggle-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav ul {
  display: flex;
  list-style: none;
  flex: 1;
}
nav ul li a {
  display: block;
  padding: 14px 13px;
  text-decoration: none;
  color: #444;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--teal);
  color: var(--white);
}

/* ── CONTENT WRAPPER ── */
.page-wrapper { background: var(--teal); padding: 0 16px 60px; }
.content-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px 50px 50px;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ── PAGE SECTIONS ── */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BREADCRUMB ── */
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 28px; }
.breadcrumb a { color: var(--orange); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── PAGE TITLE ── */
.page-title {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal-light);
}

/* ── HOME ── */
.quote-block {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.quote-block p { font-family: 'Merriweather', serif; font-style: italic; font-size: 1rem; color: #444; line-height: 1.7; }
.quote-block span { font-weight: 700; font-style: normal; }
.home-content { display: flex; gap: 30px; align-items: flex-start; }
.home-text { flex: 1; }
.home-text p { margin-bottom: 14px; text-align: justify; }
.flags-col { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.flag { width: 80px; height: 50px; border: 1px solid #ccc; border-radius: 2px; display: block; overflow: hidden; transition: opacity 0.2s; }
.flag:hover { opacity: 0.75; }

/* ── PAGE BODY ── */
.page-body p { margin-bottom: 14px; text-align: justify; }
.page-body h3 { font-family: 'Merriweather', serif; color: var(--teal-dark); margin: 20px 0 8px; font-size: 1rem; }
.page-body h4 { font-family: 'Merriweather', serif; font-size: 0.9rem; color: var(--teal); margin: 14px 0 6px; }
.page-body ul { padding-left: 20px; margin-bottom: 12px; }
.page-body ul li { font-size: 13.5px; margin-bottom: 4px; color: #444; }

/* ── AKTUELL ── */
.telefonzeiten-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px auto; text-align: center; }
.tz-title { font-weight: 700; font-size: 15px; color: #2a3a4a; margin-bottom: 6px; }
.tz-row   { font-size: 14px; color: #2a3a4a; }

/* ── TÄTIGKEITSBEREICHE ── */
.tb-layout { display: flex; gap: 30px; align-items: flex-start; }
.tb-left   { flex: 1; min-width: 0; }
.tb-right  { flex-shrink: 0; width: 220px; }
.tb-photo-placeholder { width: 100%; border-radius: 4px; overflow: hidden; border: 1px solid #ccc; margin-top: 10px; }
.tb-photo-placeholder img { width: 100%; height: auto; display: block; }

/* ── TEAM ── */
.team-list { display: flex; flex-direction: column; gap: 28px; }
.team-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.team-member { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; }
.team-photo-box { width: 100%; overflow: hidden; border-radius: 3px; border: 1px solid #ddd; background: #eee; }
.team-photo-box img { width: 100%; height: auto; display: block; }
.team-info h3 { font-family: 'Merriweather', serif; font-size: 0.92rem; color: var(--text); margin-bottom: 4px; font-weight: 700; }
.team-info p  { font-size: 13px; color: #444; margin-bottom: 2px; }
.team-email   { color: var(--orange); font-size: 13px; text-decoration: none; display: inline-block; margin-top: 6px; word-break: break-all; }
.team-email:hover { text-decoration: underline; }

/* ── KONTAKT ── */
.kontakt-building { margin: 24px auto 0; text-align: center; max-width: 400px; border-radius: 4px; overflow: hidden; border: 1px solid #ddd; }
.kontakt-building svg { display: block; width: 100%; height: auto; }

/* ── IMPRESSUM ── */
.impressum-layout { display: flex; gap: 36px; align-items: flex-start; }
.impressum-left   { flex: 1; }
.impressum-right  { flex-shrink: 0; margin-top: 8px; border: 1px solid #ccc; border-radius: 3px; overflow: hidden; }
.impressum-right svg { display: block; }

/* ── FOOTER ── */
footer { background: #2d8a98; color: rgba(255,255,255,0.85); text-align: center; padding: 20px 16px; font-size: 12px; line-height: 1.8; }
footer a { color: rgba(255,255,255,0.95); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-seo      { margin-bottom: 10px; }
.footer-keywords { font-size: 11px; opacity: 0.7; margin-top: 6px; }
.footer-links    { margin-bottom: 8px; }
.footer-copy     { font-size: 11px; opacity: 0.8; }

/* ── WHATSAPP ── */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; color: white; border-radius: 50px;
  padding: 12px 20px; text-decoration: none; font-weight: 600;
  font-size: 14px; box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(37,211,102,0.6); }
.whatsapp-btn svg   { width: 22px; height: 22px; fill: white; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: #2a3a4a; color: white; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
#cookie-banner a { color: var(--teal); }
#cookie-banner button {
  background: var(--teal); color: white; border: none; border-radius: 4px;
  padding: 8px 20px; cursor: pointer; font-size: 13px; font-weight: 600; white-space: nowrap;
}
#cookie-banner button:hover { background: var(--teal-dark); }

/* ================================================================
   TABLET  641px – 900px
   ================================================================ */
@media (max-width: 900px) {
  .content-card { padding: 30px 30px 40px; }
  nav ul li a { padding: 11px 10px; font-size: 11.5px; }
  .hero-logo { padding: 16px 24px; }
  .impressum-layout { flex-direction: column; }
  .impressum-right  { width: 100%; }
  .impressum-right svg { width: 100%; height: auto; }
}

/* ================================================================
   MOBILE  ≤ 640px
   ================================================================ */
@media (max-width: 640px) {
  .hero { padding: 12px; }
  .hero-logo { padding: 12px 14px; }

  /* Hamburger */
  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: wrap; padding: 0 12px; }
  nav ul {
    display: none; flex-direction: column;
    width: 100%; border-top: 1px solid #eee;
    flex-basis: 100%;
  }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a { padding: 13px 16px; font-size: 14px; white-space: normal; border-bottom: 1px solid #f0f0f0; }

  .page-wrapper { padding: 0 8px 40px; }
  .content-card { padding: 20px 16px 30px; }
  .hero-portrait { width: calc(100% + 32px); margin: -20px -16px 20px -16px; }
  .page-title   { font-size: 1.2rem; }

  .home-content { flex-direction: column; }
  .flags-col    { flex-direction: row; gap: 10px; flex-wrap: wrap; }

  .tb-layout { flex-direction: column; }
  .tb-right  { width: 100%; }

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

  .kontakt-building { max-width: 100%; }

  .impressum-layout { flex-direction: column; }
  .impressum-right  { width: 100%; }

  footer { font-size: 11px; padding: 14px 10px; }

  .whatsapp-btn { padding: 10px 14px; font-size: 13px; bottom: 16px; right: 12px; }
}

/* ── HOME – FLAGS ROW ── */
.home-flags-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.home-flags-label {
  font-size: 12px;
  color: #888;
  margin-right: 4px;
}
.home-flags-row a { display: block; transition: opacity 0.2s; }
.home-flags-row a:hover { opacity: 0.75; }

/* ── HOME – LANGUAGE BLOCKS ── */
.lang-block {
  padding: 28px 0;
  border-bottom: 2px solid #e8f4f6;
}
.lang-block--last {
  border-bottom: none;
  padding-bottom: 0;
}
.lang-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.flag-inline {
  width: 48px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}
.lang-label {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.lang-block .quote-block {
  margin-bottom: 16px;
  padding-bottom: 14px;
}
.lang-block p {
  margin-bottom: 12px;
  text-align: justify;
  line-height: 1.7;
}
