/* ================================================================
   style.css – Meike Höpfner Landingpage
   Palette: Navy #1a3558 · Blue #2d6a9f · Accent #3d85c8 · Ice #e8f1f8
   Fonts: Cormorant Garamond (headings) · Raleway (UI) · Source Sans 3 (body)
   ================================================================ */

/* ─── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --navy:    #1a3558;
  --navyD:   #0e1f35;
  --blue:    #2d6a9f;
  --accent:  #3d85c8;
  --accentL: #6eb3e8;
  --ice:     #e8f1f8;
  --iceD:    #c8dded;
  --text:    #253545;
  --textM:   #4d6275;
  --textL:   #7a8f9e;
  --border:  #d8e6f0;
  --gray:    #f3f6f9;
  --white:   #fff;
  --navH:    66px;
  --radius:  10px;
  --shadow-sm: 0 2px 18px rgba(26,53,88,.08);
  --shadow-md: 0 8px 40px rgba(26,53,88,.14);
  --shadow-lg: 0 16px 60px rgba(26,53,88,.18);
}

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
:is(p, li, label, .tl-desc, .cbox, .k-detail, .modal-box) a { text-decoration: underline; text-underline-offset: 3px; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── NAVIGATION ────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--navH);
  display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap;
  padding: 0 2.5rem;
  transition: background .3s, box-shadow .3s;
}
#nav.scrolled {
  background: rgba(14,31,53,.97);
  box-shadow: 0 2px 30px rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .01em;
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo span   { font-weight: 300; opacity: .5; }
.nav-logo strong { font-weight: 400; }

.nav-links { display: flex; gap: .15rem; flex: 1; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: .77rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  padding: .4rem .85rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }

.lang-switcher { display: flex; gap: 3px; flex-shrink: 0; }
.lbtn {
  font-family: 'Raleway', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  padding: .28rem .6rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 3px;
  transition: all .2s;
}
.lbtn:hover { color: var(--white); border-color: rgba(255,255,255,.5); }
.lbtn.on    { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: .35rem; margin-left: auto;
}
.hamburger i {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open i:nth-child(2) { opacity: 0; }
.hamburger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mob-nav {
  display: none; position: fixed; top: var(--navH); left: 0; right: 0; bottom: 0;
  background: var(--navyD); z-index: 899;
  flex-direction: column; justify-content: space-between; align-items: center;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  overflow-y: auto;
}
#mob-nav.open { display: flex; }
#mob-nav .mob-links {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
#mob-nav a {
  display: block; width: 100%; text-align: center; padding: .9rem 0;
  font-family: 'Raleway', sans-serif; font-size: 1rem; font-weight: 600;
  color: rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
#mob-nav a:hover { color: var(--white); }
.mob-lang { display: flex; gap: .5rem; justify-content: center; margin-top: 0; }

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--navH) + 3rem) 2rem 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('media/hero-bg.jpg') center/cover no-repeat;
  will-change: transform;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(8,18,32,.92) 0%,
    rgba(18,40,70,.88) 60%,
    rgba(26,60,100,.82) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px;
  animation: fadeUp .8s cubic-bezier(.2,.8,.3,1) both;
}
.hero-logo {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1; color: var(--white);
  letter-spacing: -.01em; margin-bottom: 1.6rem;
  margin-top: 0; padding: 0; font-weight: 400;
}
.hero-logo span   { font-weight: 300; opacity: .45; }
.hero-logo strong { font-weight: 400; }
.hero-rule {
  width: 50px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 1.6rem;
}
.hero-sub {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(.78rem, 1.6vw, .92rem); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(175,210,240,.72);
  line-height: 2; margin-bottom: 1.8rem;
  animation: fadeUp .8s .15s cubic-bezier(.2,.8,.3,1) both;
}
.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-style: italic; font-weight: 300;
  color: rgba(195,225,245,.8);
  max-width: 580px; margin: 0 auto 2.6rem;
  line-height: 1.7;
  animation: fadeUp .8s .25s cubic-bezier(.2,.8,.3,1) both;
}
.hero-btns {
  display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s .35s cubic-bezier(.2,.8,.3,1) both;
}
.btn-p, .btn-s {
  font-family: 'Raleway', sans-serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .85rem 1.9rem; border-radius: 4px; transition: all .25s;
}
.btn-p {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 20px rgba(61,133,200,.4);
}
.btn-p:hover { background: #5599d8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(61,133,200,.5); }
.btn-s {
  background: transparent; color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-s:hover { border-color: rgba(255,255,255,.65); color: var(--white); transform: translateY(-2px); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.3);
  font-family: 'Raleway', sans-serif; font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}
.scroll-hint svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0);   opacity: .3; }
  50%      { transform: translateX(-50%) translateY(7px); opacity: .6; }
}

/* ─── SECTION BASE ──────────────────────────────────────────────── */
section { padding: 6rem 2rem; }
.wrap { max-width: 1080px; margin: 0 auto; }
.sec-top { text-align: center; margin-bottom: 3.5rem; }

.label {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--navy);
  line-height: 1.15; margin-bottom: 1rem;
}
.mob-br { display: none; }
.rule       { display: block; width: 44px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accentL)); margin: 0 auto; }
.rule-left  { margin: 0; }

/* ─── ABOUT ─────────────────────────────────────────────────────── */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 370px; gap: 4rem; align-items: start;
}
.about-text .heading { margin-bottom: .6rem; }
.about-credentials {
  font-family: 'Raleway', sans-serif; font-size: .95rem;
  color: var(--accent); font-weight: 600; line-height: 1.7;
  margin-bottom: 1.2rem !important;
}
.about-text p { color: var(--textM); font-size: 1rem; margin-bottom: 1rem; }

.svc-list { margin-top: .8rem; }
.svc-list li {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
  font-size: .97rem; color: var(--text); transition: color .18s;
}
.svc-list li:last-child { border: none; }
.svc-list li:hover { color: var(--navy); }
.dot {
  flex-shrink: 0; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; margin-top: .4rem;
}

/* 4-Step Process */
.steps-wrap {
  margin-top: 3.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.steps-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.45rem;
  color: var(--navy); font-weight: 600; margin-bottom: 2rem; text-align: center;
}
.steps-grid {
  display: flex; align-items: stretch; gap: 0;
}
.step-card {
  flex: 1; text-align: center; padding: 1.8rem 1.2rem;
  background: var(--gray); border-radius: var(--radius);
  border: 1px solid var(--border); position: relative;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Raleway', sans-serif; font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon {
  width: 44px; height: 44px; margin: 0 auto .9rem;
  background: var(--ice); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg {
  width: 22px; height: 22px; stroke: var(--accent);
  fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.step-card h4 {
  font-family: 'Raleway', sans-serif; font-size: .9rem;
  font-weight: 700; color: var(--navy); margin-bottom: .5rem;
}
.step-card p {
  font-size: .82rem; color: var(--textM); line-height: 1.55;
}
.step-card p a { color: var(--accent); transition: color .2s; }
.step-card p a:hover { color: var(--navy); }
.step-arrow {
  flex-shrink: 0; width: 36px; align-self: center;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.step-arrow svg {
  width: 22px; height: 22px; stroke: var(--accentL);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 760px) {
  .steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .step-card  { min-width: 0; }
  .step-arrow { display: none; }
}

/* Sidebar boxes */
.lang-box {
  background: var(--ice); border: 1px solid var(--iceD);
  border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.2rem;
}
.box-label {
  font-family: 'Raleway', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.lang-item {
  display: flex; align-items: center; gap: .9rem;
  background: var(--white); border-radius: 7px; padding: .7rem .9rem;
  margin-bottom: .6rem; box-shadow: var(--shadow-sm);
}
.lang-item:last-child { margin: 0; }
.lang-flag { width: 1.6rem; height: auto; border-radius: 2px; flex-shrink: 0; }
.lang-name { font-weight: 600; color: var(--navy); font-size: .93rem; }
.lang-note { font-size: .8rem; color: var(--textL); }

.cbox {
  background: var(--navy); border-radius: var(--radius); padding: 1.6rem;
  font-size: .9rem; line-height: 1.85; color: rgba(195,220,240,.72);
}
.cbox .box-label { color: var(--accentL); margin-bottom: .8rem; }
.cbox strong { color: rgba(255,255,255,.9); font-weight: 600; }
.cbox a { color: var(--accentL); }
.cbox a:hover { color: var(--white); }

/* ─── FACHGEBIETE ───────────────────────────────────────────────── */
#fachgebiete { background: var(--gray); }
.fach-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.fach-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(210,230,240,.6);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
}
.fach-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.fach-imgbox { height: 185px; overflow: hidden; position: relative; }
.fach-imgbox img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), filter .45s;
  filter: saturate(.75);
}
.fach-card:hover .fach-imgbox img { transform: scale(1.08); filter: saturate(1.1); }
.fach-imgbox::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,53,88,.3), transparent 60%);
  transition: opacity .3s;
}
.fach-card:hover .fach-imgbox::after { opacity: 0; }
.fach-body { padding: 1.6rem; }
.fach-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600; color: var(--navy);
  margin-bottom: .7rem; line-height: 1.25;
}
.fach-body p { font-size: .88rem; color: var(--textL); line-height: 1.72; }

/* ─── REFERENZEN ────────────────────────────────────────────────── */
#referenzen { background: var(--white); }
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; border-bottom: 1.5px solid var(--border); margin-bottom: 2.5rem;
}
.tab {
  font-family: 'Raleway', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--textL); padding: .8rem 1.4rem;
  border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  transition: color .2s, border-color .2s; cursor: pointer;
}
.tab:hover { color: var(--blue); }
.tab.on    { color: var(--navy); border-bottom-color: var(--accent); }
.panel     { display: none; }
.panel.on  { display: block; }

.ref-img {
  width: 100%; object-fit: cover;
  border-radius: 9px; margin-bottom: 2rem; filter: saturate(.75);
}
.ref-cols { columns: 2; gap: 2rem; }
.ref-cols li {
  display: flex; gap: .5rem; align-items: baseline;
  padding: .38rem 0; font-size: .91rem; color: var(--textM);
  break-inside: avoid; transition: color .15s;
}
.ref-cols li:hover { color: var(--navy); }
.ref-cols li::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1.2rem; }
.proj-card {
  display: flex; gap: .9rem; padding: 1rem; position: relative;
  border: 1px solid var(--border); border-radius: 9px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.proj-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(26,53,88,.1); transform: translateY(-2px); }
.proj-card-link { position: absolute; inset: 0; border-radius: 9px; z-index: 1; }
.proj-thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 5px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.proj-info h4 { font-family: 'Raleway', sans-serif; font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; line-height: 1.3; }
.proj-info p  { font-size: .79rem; color: var(--textL); line-height: 1.55; }

/* ─── LEBENSLAUF ────────────────────────────────────────────────── */
#lebenslauf { background: var(--gray); }
.cv-grid { display: grid; grid-template-columns: 220px 1fr; gap: 4rem; align-items: start; }
.cv-portrait { width: 100%; border-radius: 9px; box-shadow: var(--shadow-md); margin-bottom: 1.2rem; }
.cv-data {
  background: var(--navy); border-radius: 9px; padding: 1.3rem;
  font-size: .88rem; line-height: 1.8; color: rgba(190,215,240,.72);
}
.cv-data .box-label { color: var(--accentL); margin-bottom: .7rem; }
.cv-data strong { color: rgba(255,255,255,.9); font-size: 1rem; display: block; margin-bottom: .25rem; }

.tl-sec { margin-bottom: 2.2rem; }
.tl-sec-title {
  font-family: 'Raleway', sans-serif;
  font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); padding-bottom: .55rem;
  border-bottom: 1.5px solid var(--border); margin-bottom: .9rem;
}
.tl-row {
  display: grid; grid-template-columns: 160px 1fr; gap: .9rem;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
}
.tl-row:last-child { border: none; }
.tl-yr   { font-family: 'Raleway', sans-serif; font-size: .82rem; font-weight: 700; color: var(--textL); white-space: nowrap; }
.tl-desc { font-size: .92rem; color: var(--textM); line-height: 1.62; }
.tl-desc strong { color: var(--navy); font-weight: 600; display: block; margin-bottom: .1rem; }
.tl-desc a { color: var(--accent); transition: color .2s; }
.tl-desc a:hover { color: var(--navy); }

/* ─── KONTAKT ───────────────────────────────────────────────────── */
#kontakt { background: var(--white); }
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.k-img {
  width: 100%; height: 175px; object-fit: cover;
  border-radius: 9px; margin-bottom: 1.8rem; filter: saturate(.6);
}
.k-item { display: flex; gap: .9rem; margin-bottom: 1.3rem; }
.k-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--ice); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.k-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; }
.k-detail { font-size: .9rem; }
.k-detail strong { display: block; font-weight: 600; color: var(--navy); margin-bottom: .1rem; }
.k-detail span, .k-detail a { color: var(--textL); }
.k-detail a:hover { color: var(--blue); }

.soc-row { display: flex; gap: .5rem; margin-top: 1.8rem; align-items: center; }
.soc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  transition: opacity .2s, transform .2s;
}
.soc-icon:hover { opacity: .82; transform: translateY(-2px); }
.soc-icon img { width: 32px; height: 32px; display: block; }

/* Contact form */
.cform { display: flex; flex-direction: column; gap: 1rem; }
.fg    { display: flex; flex-direction: column; gap: .3rem; }
.fg2   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg label {
  font-family: 'Raleway', sans-serif; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.fg input, .fg select, .fg textarea {
  padding: .72rem 1rem; border: 1.5px solid var(--border); border-radius: 6px;
  font-family: 'Source Sans 3', sans-serif; font-size: .93rem; color: var(--text);
  background: var(--gray); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px rgba(61,133,200,.12);
}
.fg textarea { resize: vertical; min-height: 125px; }

.check-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .83rem; color: var(--textL); }
.check-row input { margin-top: .22rem; accent-color: var(--accent); flex-shrink: 0; }
.check-row a { color: var(--accent); }

.btn-send {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  font-family: 'Raleway', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); background: var(--navy);
  padding: .85rem 2rem; border-radius: 5px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-send:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(45,106,159,.3); }
.btn-send svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.form-ok {
  display: none; background: #eaf5ec; border: 1px solid #b3d9b9;
  border-radius: 8px; padding: 1.1rem 1.4rem;
  color: #1f6430; font-size: .95rem; font-weight: 600;
}
.form-ok.show { display: block; }

/* Pflichtfeld-Fehler */
.fg.field-err input,
.fg.field-err select,
.fg.field-err textarea {
  border-color: #c00 !important;
  background: #fff8f8 !important;
  box-shadow: 0 0 0 3px rgba(200,0,0,.08) !important;
}
.fg.field-err label { color: #c00; }
.check-row.field-err { color: #c00; }
.check-row.field-err a { color: #c00; }

/* Fehlermeldung Formular */
.form-err {
  background: #fdf1f1; border: 1px solid #e8b8b8;
  border-radius: 6px; padding: .75rem 1rem;
  color: #b00020; font-size: .87rem; font-weight: 600;
}

/* Lade-Zustand Sende-Button */
.btn-send:disabled        { opacity: .65; cursor: not-allowed; transform: none; }
.btn-send.loading::after  {
  content: ''; display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: btn-spin .7s linear infinite; margin-left: .4rem;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* FilePond Hinweistext */
.fp-hint {
  font-size: .76rem; color: var(--textL); margin: .2rem 0 0; line-height: 1.4;
}

/* FilePond – "Keine ausgewählt" (Browser-Native-Input) und Credits verstecken */
.filepond--browser        { position: absolute !important; left: -9999px !important; }
.filepond--credits        { display: none !important; }

/* FilePond – an Seitendesign anpassen */
.filepond--root { font-family: 'Source Sans 3', sans-serif; font-size: .9rem; }
.filepond--panel-root { background: var(--gray); border: 1.5px solid var(--border); border-radius: 6px; }
.filepond--drop-label { color: var(--textL); }
.filepond--drop-label label { cursor: pointer; }
.filepond--label-action { color: var(--accent) !important; text-decoration: underline !important; text-decoration-color: var(--accent) !important; text-underline-offset: 3px; }
.filepond--item-panel { background: var(--navy); }
.filepond--file-action-button { background: rgba(0,0,0,.3); }
.filepond--file { font-size: .82rem; }

/* ─── MODAL ─────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,20,40,.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px;
  max-width: 560px; width: 100%; max-height: 90vh; overflow: hidden;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-scroll {
  overflow-y: auto; max-height: 90vh; padding: 2.5rem 2.8rem;
}
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--textL); cursor: pointer; padding: .2rem .5rem;
  transition: color .15s;
}
.modal-close:hover { color: var(--navy); }
.modal-title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.8rem;
  color: var(--navy); font-weight: 600; margin-bottom: .3rem;
}
.modal-sub {
  font-family: 'Raleway', sans-serif; font-size: .88rem;
  color: var(--accent); font-weight: 600; margin-bottom: 1.4rem;
  line-height: 1.6; border-bottom: 1px solid var(--border); padding-bottom: 1rem;
}
.modal-box p { font-size: .95rem; color: var(--textM); margin-bottom: 1rem; line-height: 1.7; }
.modal-box a { color: var(--accent); }
.modal-h3 {
  font-family: 'Raleway', sans-serif; font-size: .9rem; font-weight: 700;
  color: var(--navy); margin: 1.2rem 0 .4rem; text-transform: uppercase; letter-spacing: .05em;
}
.modal-meta { font-size: .83rem; color: var(--textL); border-top: 1px solid var(--border); padding-top: .8rem; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
footer {
  background: var(--navyD); color: rgba(150,180,210,.5);
  font-family: 'Raleway', sans-serif; font-size: .78rem;
  letter-spacing: .04em; text-align: center; padding: 2.2rem 2rem;
}
.ft-links { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .4rem; }
.ft-links a { color: rgba(150,180,210,.5); padding: .1rem .4rem; transition: color .2s; }
.ft-links a:hover { color: rgba(255,255,255,.75); }
.ft-sep { opacity: .3; }

/* ─── BACK TO TOP ───────────────────────────────────────────────── */
#btt {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 800;
  width: 42px; height: 42px; background: var(--navy); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); box-shadow: 0 3px 18px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .3s, transform .3s, background .2s;
}
#btt.show { opacity: 1; pointer-events: all; transform: translateY(0); }
#btt:hover { background: var(--blue); }
#btt svg { width: 17px; height: 17px; stroke: var(--white); fill: none; stroke-width: 2; }

/* ─── COOKIE BAND ────────────────────────────────────────────────── */
#cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(14,31,53,.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1100;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.5rem;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: -webkit-transform .4s cubic-bezier(.22,.68,0,1.1);
  transition: transform .4s cubic-bezier(.22,.68,0,1.1);
  box-shadow: 0 -4px 30px rgba(0,0,0,.3);
}
#cookie-bar.show { -webkit-transform: translateY(0); transform: translateY(0); }
.cbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  gap: 1.25rem; -ms-flex-wrap: wrap; flex-wrap: wrap;
}
.cbar-text {
  -webkit-box-flex: 1; -ms-flex: 1; flex: 1; min-width: 220px;
  font-family: 'Raleway', sans-serif; font-size: .82rem;
  line-height: 1.6; color: rgba(255,255,255,.82); margin: 0;
}
.cbar-dsg-link {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--accentL); text-decoration: underline; cursor: pointer; display: inline;
}
.cbar-dsg-link:hover { color: #fff; }
/* Override for dsg-links inside white modal body */
.cmod-body .cbar-dsg-link { color: var(--accent); }
.cmod-body .cbar-dsg-link:hover { color: var(--navy); }
.cbar-btns {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: .55rem; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-negative: 0; flex-shrink: 0;
}
.cbar-btn {
  font-family: 'Raleway', sans-serif; font-size: .77rem; font-weight: 700;
  letter-spacing: .04em; padding: .48rem 1rem; border-radius: 5px;
  border: none; cursor: pointer; white-space: nowrap;
  -webkit-transition: opacity .2s, -webkit-transform .15s;
  transition: opacity .2s, transform .15s;
}
.cbar-btn:hover { opacity: .88; -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.cbar-btn--settings, .cbar-btn--decline {
  background: transparent; color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.3);
}
.cbar-btn--settings:hover, .cbar-btn--decline:hover { color: #fff; border-color: rgba(255,255,255,.7); }
.cbar-btn--accept { background: var(--accent); color: #fff; }

/* ─── COOKIE SETTINGS MODAL ──────────────────────────────────────── */
.cmod-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,20,40,.65); z-index: 1200;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
}
.cmod-overlay.open {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
}
.cmod-box {
  background: #fff; border-radius: 10px;
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-orient: vertical; -webkit-box-direction: normal;
  -ms-flex-direction: column; flex-direction: column;
}
.cmod-header {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid rgba(0,0,0,.08);
  -ms-flex-negative: 0; flex-shrink: 0;
}
.cmod-close {
  background: none; border: none; font-size: 1rem; color: #666;
  cursor: pointer; padding: .3rem .5rem; border-radius: 4px; line-height: 1;
  -webkit-transition: color .2s, background .2s; transition: color .2s, background .2s;
}
.cmod-close:hover { color: #000; background: rgba(0,0,0,.06); }
.cmod-body {
  padding: 1.4rem 1.4rem .8rem;
  -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.cmod-title {
  font-family: 'Raleway', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin: 0 0 .85rem;
}
.cmod-intro {
  font-family: 'Raleway', sans-serif; font-size: .83rem;
  line-height: 1.7; color: #444; margin: 0 0 1.2rem;
}
.ccat {
  border: 1px solid rgba(0,0,0,.1); border-radius: 8px;
  margin-bottom: .65rem; overflow: hidden;
}
.ccat-row {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  -webkit-box-align: center; -ms-flex-align: center; align-items: center;
  -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between;
  padding: .8rem 1rem; background: #f8fafc; gap: 1rem;
}
.ccat-name {
  font-family: 'Raleway', sans-serif; font-size: .83rem;
  font-weight: 600; color: var(--navy);
}
.ccat-always {
  font-family: 'Raleway', sans-serif; font-size: .74rem;
  font-weight: 600; color: #2a9d5c; white-space: nowrap;
}
/* Toggle — cross-browser (Chrome, Firefox, Safari, Edge) */
.ctoggle {
  position: relative; display: inline-block;
  width: 46px; height: 26px; -ms-flex-negative: 0; flex-shrink: 0; cursor: pointer;
}
.ctoggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ctoggle-track {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; border-radius: 26px;
  -webkit-transition: background .25s; transition: background .25s;
}
.ctoggle input:checked ~ .ctoggle-track { background: var(--accent); }
.ctoggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  -webkit-transition: -webkit-transform .25s; transition: transform .25s;
}
.ctoggle input:checked ~ .ctoggle-track .ctoggle-thumb {
  -webkit-transform: translateX(20px); transform: translateX(20px);
}
.ctoggle input:focus ~ .ctoggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Info box */
.cmod-infobox {
  background: #f3f6f9; border-radius: 8px;
  padding: .9rem 1.1rem; margin-top: .9rem;
}
.cmod-info-title {
  font-family: 'Raleway', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 .45rem;
}
.cmod-infobox p {
  font-family: 'Raleway', sans-serif; font-size: .81rem;
  line-height: 1.65; color: #555; margin: 0;
}
.cmod-contact-link { color: var(--accent); }
.cmod-contact-link:hover { color: var(--navy); }
/* Footer */
.cmod-footer {
  display: -webkit-box; display: -ms-flexbox; display: flex;
  gap: .55rem; -ms-flex-wrap: wrap; flex-wrap: wrap;
  padding: 1rem 1.4rem; border-top: 1px solid rgba(0,0,0,.08);
  background: #f8fafc; border-radius: 0 0 10px 10px;
  -ms-flex-negative: 0; flex-shrink: 0;
}
.cmod-btn {
  font-family: 'Raleway', sans-serif; font-size: .77rem; font-weight: 700;
  letter-spacing: .04em; padding: .52rem 1rem; border-radius: 5px;
  border: none; cursor: pointer; white-space: nowrap;
  -webkit-transition: opacity .2s, -webkit-transform .15s; transition: opacity .2s, transform .15s;
}
.cmod-btn:hover { opacity: .88; -webkit-transform: translateY(-1px); transform: translateY(-1px); }
.cmod-btn--accept { background: var(--navy); color: #fff; }
.cmod-btn--decline {
  background: transparent; color: #555; border: 1px solid #ccc;
}
.cmod-btn--decline:hover { color: #222; border-color: #999; }
.cmod-btn--save { background: var(--accent); color: #fff; margin-left: auto; }
/* Responsive cookie */
@media (max-width: 600px) {
  .cbar-btns { width: 100%; gap: .4rem; }
  .cbar-btn { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; text-align: center; padding: .48rem .4rem; font-size: .72rem; }
  .cmod-overlay { padding: .75rem; }
  .cmod-footer { -webkit-box-pack: start; -ms-flex-pack: start; justify-content: flex-start; }
  .cmod-btn--save { margin-left: 0; width: 100%; text-align: center; }
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .about-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .mob-br        { display: inline; }
  .about-text .heading      { text-align: center; }
  .about-credentials        { text-align: center; }
  .about-text .rule-left    { margin: 0 auto; }
  .fach-grid     { grid-template-columns: 1fr 1fr; }
  .cv-grid       { grid-template-columns: 180px 1fr; gap: 2.5rem; }
  .kontakt-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .fach-grid { grid-template-columns: 1fr; }
  .cv-grid   { grid-template-columns: 1fr; }
  .cv-portrait { width: 100%; max-width: 100%; display: block; margin-left: auto; margin-right: auto; border-radius: 9px; }
  .ref-cols  { columns: 1; }
  .tl-row    { grid-template-columns: 130px 1fr; }
  section    { padding: 4rem 1.2rem; }
}
@media (max-width: 500px) {
  .fg2       { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
