/* ===== LAW-DIA — consolidated style.css (2025-11-09, Logo + Portrait-Fix) ===== */
*{box-sizing:border-box}
:root{
  --blue:#1f7afc;
  --green:#25c281;
  --ink:#0b2a4a;
  --bg1:#cfefff;
  --bg2:#f5e6c8;
  --line:#e6eaf0;
}

html,body{
  margin:0;
  padding:0;
  font-family:Inter,system-ui,Arial,sans-serif;
  color:var(--ink);
  background:linear-gradient(to bottom,var(--bg1),var(--bg2)) fixed;
  line-height:1.6;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--blue);text-decoration:none}

.container{
  width:min(1200px,92vw);
  margin:0 auto;
  padding:20px 16px;
}

.section{padding:32px 0;}
.section.carded{
  background:linear-gradient(180deg,rgba(31,122,252,0.04),rgba(37,194,129,0.04));
}
.section.alt{background:#fff;}

h1,h2,h3{
  margin:0 0 .6em;
  line-height:1.2;
}
h1{font-size:clamp(1.9rem,1.3rem + 1.8vw,2.7rem);}
h2{font-size:clamp(1.5rem,1.2rem + 1vw,2.05rem);}
h3{font-size:clamp(1.1rem,1rem + .4vw,1.35rem);}

/* ===== HEADER ===== */
.brand-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:999;
}
.brand-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 16px;
}

/* Header-Logo – doppelt so groß */
.brand-logo{
  height:168px;  /* vorher 84px */
  width:auto;
  border-radius:6px;
  transition:height .25s ease;
}

.brand-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
}
.brand-nav a{
  padding:8px 10px;
  border-radius:10px;
  color:var(--ink);
  font-weight:500;
}
.brand-nav a.btn{
  color:#fff;
  background:linear-gradient(90deg,var(--blue),var(--green));
  border-radius:14px;
  padding:9px 14px;
  box-shadow:0 2px 10px rgba(31,122,252,.18);
  text-shadow:0 1px 0 rgba(0,0,0,.15);
}

/* ===== HERO SECTION ===== */
.hero{padding:48px 20px;}
.hero .container{text-align:center;}
.hero img{
  margin:14px auto 0;
  width:min(900px,92%);
  border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

/* ===== GENERELLE KARTEN ===== */
.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  align-items:start;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}
figure.card{padding:16px;}
figure.card h3{margin:6px 0 10px;}
figure.card figcaption{margin-top:10px;color:#475569}

/* ===== LEISTUNGEN ===== */
#leistungen{
  background: linear-gradient(180deg, rgba(31,122,252,0.04), rgba(255,209,82,0.06));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

#leistungen .section-header{
  margin-bottom: 20px;
}

#leistungen .leistungen-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

#leistungen .leistungen-box{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}

#leistungen .leistungen-box h3{
  margin: 0 0 12px;
}

#leistungen .leistungen-box p{
  margin: 0 0 14px;
}

@media (max-width: 900px){
  #leistungen .leistungen-grid{
    grid-template-columns: 1fr;
  }
}

/* ===== ÜBER UNS – Grundlayout ===== */
#ueber-uns .cv-mini{
  width:100%;
  margin-top:16px;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
#ueber-uns .cv-mini h4{
  margin:0 0 10px;
  font-size:1.05rem;
}
#ueber-uns .cv-mini .table-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:auto;
  scrollbar-color:#1f7afc #e5f6ef;
}
#ueber-uns .cv-mini .table-scroll::-webkit-scrollbar{height:10px;}
#ueber-uns .cv-mini .table-scroll::-webkit-scrollbar-thumb{
  background:linear-gradient(90deg,#1f7afc,#25c281);
  border-radius:8px;
}
#ueber-uns .cv-mini .table-scroll::-webkit-scrollbar-track{
  background:#e5f6ef;
  border-radius:8px;
}
#ueber-uns .cv-mini table{
  min-width:980px;
  width:100%;
  border-collapse:collapse;
}
#ueber-uns .cv-mini th,
#ueber-uns .cv-mini td{
  border:1px solid var(--line);
  padding:10px 8px;
  line-height:1.35;
  vertical-align:top;
  font-size:.95rem;
  word-break:keep-all;
}
#ueber-uns .cv-mini thead th{
  background:#f5f9ff;
  font-weight:600;
}
#ueber-uns .cv-mini td:first-child,
#ueber-uns .cv-mini th:first-child{white-space:nowrap;}
#ueber-uns .cv-mini td:nth-child(2),
#ueber-uns .cv-mini th:nth-child(2){
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
}
#ueber-uns .cv-mini td:nth-child(3),
#ueber-uns .cv-mini th:nth-child(3){white-space:normal;}

/* ===== PORTRAITS – Robert & Liubov exakt gleich groß ===== */
#ueber-uns .container{
  max-width:1260px;
  padding-left:12px;
  padding-right:12px;
}

#ueber-uns .cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(320px,1fr));
  gap:16px;
  align-items:start;
  justify-items:center;
}

#ueber-uns figure.card,
#ueber-uns article.card{
  max-width:420px;
}

/* Beide Portraitbilder – gleiche Breite & feste Höhe */
#ueber-uns img.portrait{
  width:100%;
  max-width:360px;
  height:480px;            /* feste Höhe -> Robert & Liubov exakt gleich */
  object-fit:cover;        /* Bild wird zugeschnitten, nicht verzerrt */
  border-radius:18px;
  display:block;
  margin:0 auto 18px;
  box-shadow:0 4px 18px rgba(0,0,0,0.12);
}

/* Bildunterschriften unter beiden Portraits gleich */
#ueber-uns figcaption{
  font-weight:700;
  font-size:1.05rem;
  text-align:center;
  color:#0b2a4a;
}

/* CV-Box unter Robert */
#ueber-uns .cv-mini{
  width:100%;
  max-width:380px;
  margin:0 auto;
}

/* Text in „Was uns leitet“ etwas kompakter */
#ueber-uns article.card h3{margin-bottom:8px;}
#ueber-uns article.card p,
#ueber-uns article.card li{line-height:1.45;}

/* Kartenhöhe angleichen (Robert + Liubov) */
#ueber-uns .cards > *:nth-child(1),
#ueber-uns .cards > *:nth-child(2){
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:center;
  height:100%;
}

/* RESPONSIVE für Über-uns-Karten */
@media (max-width:1100px){
  #ueber-uns .cards{
    grid-template-columns:repeat(2,minmax(320px,1fr));
  }
}
@media (max-width:760px){
  #ueber-uns .cards{grid-template-columns:1fr;}
  #ueber-uns img.portrait{
    max-width:320px;
    height:430px;
  }
}

/* ===== PLANT GALLERY ===== */
.plant-gallery{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-start;
}
.plant-gallery img{
  width:200px;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
@media (max-width:900px){
  .plant-gallery img{
    width:160px;
    height:160px;
  }
}
.plant-collage{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
}
.plant-collage img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
}
.story-figure{max-width:460px;}
.story-figure img{
  max-width:420px;
  height:auto;
  border-radius:14px;
  object-fit:cover;
}

/* ===== GROSSES LOGO (Finanzplan, etc.) ===== */
.big-logo{
  width:360px;
  max-width:360px;
  height:auto;
  margin:0 auto 14px;
  display:block;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* ===== SUPPORT / FOOTER / KONTAKT ===== */
#support p,
#support blockquote{
  max-height:none;
  overflow:visible;
  white-space:normal;
}
.site-footer{
  background:#fff;
  color:#444;
  padding:24px 0 80px;
  border-top:1px solid rgba(0,0,0,.08);
  text-align:center;
}
.contactbar{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:linear-gradient(90deg,#1f7afc,#25c281);
  padding:12px 0;
  z-index:9999;
  box-shadow:0 -2px 8px rgba(0,0,0,.12);
}
.contactbar .container{
  display:flex;
  justify-content:center;
  gap:28px;
}
.contactbar a{
  color:#fff !important;
  font-weight:600;
  text-decoration:none;
  font-size:1rem;
  padding:8px 14px;
  border-radius:6px;
  transition:.15s;
}
.contactbar a:hover{
  background:rgba(255,255,255,.18);
}
.contact-form{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  max-width:680px;
}
.contact-form input,
.contact-form textarea{
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 12px;
  font-size:1rem;
  background:#fff;
}
.submit-btn{
  background:linear-gradient(90deg,#1f7afc,#25c281);
  color:#fff;
  border:0;
  padding:11px 16px;
  border-radius:10px;
  cursor:pointer;
  font-weight:800;
  box-shadow:0 2px 10px rgba(31,122,252,.18);
  text-shadow:0 1px 0 rgba(0,0,0,.15);
}
.submit-btn:hover{
  filter:saturate(1.06) brightness(.98);
}

/* ===== RESPONSIVE CONTAINER ===== */
@media(min-width:1400px){
  .container{width:min(1200px,88vw);}
}

/* ===== Kontaktbar-Fix + Body-Padding ===== */
.contactbar{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  z-index:9999;
  padding:10px 0;
}
body{padding-bottom:80px;}
/* ===== LIUBOV-SCHRIFT AN ROBERT ANGLEICHEN – 2025-11-09 ===== */
#ueber-uns .cards > *:nth-child(2) h3,
#ueber-uns .cards > *:nth-child(2) figcaption {
  font-size: 1.25rem !important;     /* gleich groß wie Robert */
  font-weight: 700 !important;
  text-align: center !important;
  color: #0b2a4a !important;
  margin-top: 8px !important;
  line-height: 1.35;
}
/* ===== ROBERT & LIUBOV – TITEL 1:1 ANGLEICHEN – 2025-11-09 FINAL ===== */
#ueber-uns .cards h3,
#ueber-uns .cards figcaption {
  font-size: 1.28rem !important;      /* exakt gleiche optische Größe */
  font-weight: 700 !important;
  text-align: center !important;
  color: #0b2a4a !important;
  line-height: 1.35 !important;
  margin: 10px 0 6px 0 !important;
  font-family: "Inter", system-ui, Arial, sans-serif !important;
  letter-spacing: 0.02em;
}
/* ===== ÜBER-UNS FEINSCHLIFF – 2025-11-09 ===== */

/* 1️⃣ Überschrift „Über uns“ – etwas näher an die Karten rücken */
#ueber-uns h2 {
  margin-bottom: 16px !important;   /* vorher meist ~32px, jetzt kompakter */
  text-align: left;
}

/* 2️⃣ Karten (Robert & Liubov) – gleiche Unterkante */
#ueber-uns .cards > *:nth-child(1),
#ueber-uns .cards > *:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100%;        /* gleiche Höhe erzwingen */
}

/* 3️⃣ Gleichmäßiger Innenabstand */
#ueber-uns .cards > * {
  padding-bottom: 16px;    /* verhindert leichtes optisches Absacken */
}

/* 4️⃣ Optional: etwas mehr Luft rechts von „Was uns leitet“ */
#ueber-uns .cards > *:nth-child(3) {
  padding-left: 12px;
}
/* ===== ÜBER-UNS KARTEN KORREKT AUSRICHTEN – FIX 2025-11-09 ===== */

/* Robert- & Liubov-Karte: Inhalte oben beginnen, nicht auseinanderziehen */
#ueber-uns .cards > *:nth-child(1),
#ueber-uns .cards > *:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* statt space-between */
  align-items: center;
}

/* Optional: unteren Extra-Padding wieder neutral halten */
#ueber-uns .cards > * {
  padding-bottom: 0;
}

/* ===== GLOBALER BUTTON – überall nutzbar ===== */

a.btn{
display:inline-block;
color:#ffffff !important;
background:linear-gradient(90deg,var(--blue),var(--green));
border-radius:14px;
padding:10px 18px;
font-weight:600;
text-decoration:none !important;
box-shadow:0 2px 10px rgba(31,122,252,.18);
text-shadow:0 1px 0 rgba(0,0,0,.15);
transition:transform .15s ease, box-shadow .15s ease;
}

a.btn:hover{
transform:translateY(-1px);
box-shadow:0 4px 14px rgba(31,122,252,.25);
}