/* TFP Berlin – Nachbau der Vorlage als HTML.
   Schrift liegt lokal im Ordner fonts/, es wird nichts von fremden Servern geladen. */

@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-display: swap; src: url("fonts/fira-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #0c2a6b;
  --blue: #0d4fae;
  --ink: #111111;
  --line: #b9c6d6;
  /* Eine Einheit = 1 px bei 1100 px Breite; darunter schrumpft alles proportional mit. */
  --u: min(1px, 100vw / 1100);
}

/* Startseite: so weit verkleinern, dass alles ohne Scrollen ins Fenster passt
   (1162 = Höhe der Vorlage bei voller Breite, 112px = Leiste mit Button darunter). */
body.fit { --u: max(0.6px, min(1px, 100vw / 1100, (100vh - 112px) / 1162)); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Fira Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f3f8fc 0%, #dfe9f3 55%, #cfdcea 100%) fixed;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

.flyer {
  width: 100%;
  max-width: 1100px;
}
body.fit .flyer { max-width: calc(1100 * var(--u)); }
.flyer {
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(30 * var(--u)) rgba(4, 40, 92, 0.28);
  overflow: hidden;
}

/* ---------- Kopf ---------- */
.head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(34 * var(--u)) calc(30 * var(--u)) calc(44 * var(--u)) calc(50 * var(--u));
  color: #fff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(20, 110, 205, 0.95) 0%, rgba(20, 110, 205, 0) 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(1, 30, 70, 0.9) 0%, rgba(1, 30, 70, 0) 60%),
    linear-gradient(100deg, #0652a8 0%, #053d86 40%, #04306f 70%, #012f61 100%);
}

.head h1 {
  margin: 0;
  font-size: calc(66 * var(--u));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 20, 60, 0.45);
}

.head .sub {
  margin: calc(8 * var(--u)) 0 0;
  font-size: calc(38 * var(--u));
  font-weight: 600;
  line-height: 1.1;
  color: #e9f1fb;
  text-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(0, 20, 60, 0.45);
}

.head .logo {
  flex: 0 0 auto;
  padding-left: calc(18 * var(--u));
  border-left: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.9);
}
.head .logo img { width: calc(262 * var(--u)); }

.head .wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: calc(30 * var(--u));
}

/* ---------- Helles Blatt (Inhaber, Leistungen, Team) ---------- */
.sheet {
  position: relative;
  background:
    radial-gradient(70% 60% at 45% 45%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(100deg, #e1f0fa 0%, #f6fafd 35%, #eef4fa 65%, #c9dcec 100%);
}

.owner {
  position: relative;
  display: grid;
  grid-template-columns: calc(275 * var(--u)) calc(304 * var(--u)) 1fr;
  column-gap: calc(22 * var(--u));
  padding: calc(26 * var(--u)) 0 calc(42 * var(--u)) calc(37 * var(--u));
}

.owner .photo {
  width: 100%;
  box-shadow: 0 calc(3 * var(--u)) calc(12 * var(--u)) rgba(10, 40, 90, 0.35);
}

.owner .bio { position: relative; z-index: 2; }

.owner h2 {
  margin: 0 0 calc(12 * var(--u));
  font-size: calc(33 * var(--u));
  font-weight: 700;
  line-height: 1.05;
  color: var(--navy);
}
.owner h2 small { display: block; font-size: calc(27 * var(--u)); font-weight: 700; }

.owner .qual {
  margin: 0;
  padding: calc(6 * var(--u)) 0 calc(7 * var(--u));
  font-size: calc(15.6 * var(--u));
  line-height: 1.32;
  white-space: nowrap;
}
.owner .qual + .qual { border-top: 1px solid #9aa9bb; }

.contact { margin: calc(8 * var(--u)) 0 0; padding: 0; list-style: none; }
.contact li {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--u));
  margin-top: calc(4 * var(--u));
  font-size: calc(22.5 * var(--u));
  font-weight: 500;
  line-height: 1.25;
  color: var(--navy);
  white-space: nowrap;
}
.contact svg { flex: 0 0 auto; width: calc(27 * var(--u)); height: calc(27 * var(--u)); }

.partner {
  position: relative;
  z-index: 2;
  padding-left: calc(26 * var(--u));
  border-left: calc(2 * var(--u)) solid #6f7f93;
  min-height: calc(322 * var(--u));
}

.ribbon-small {
  display: inline-block;
  margin: calc(4 * var(--u)) 0 calc(20 * var(--u));
  padding: calc(4 * var(--u)) calc(30 * var(--u)) calc(5 * var(--u)) calc(28 * var(--u));
  font-size: calc(21 * var(--u));
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: #fff;
  background: linear-gradient(90deg, #0a3f95 0%, #1b62c4 100%);
  clip-path: polygon(calc(12 * var(--u)) 0, 100% 0, calc(100% - 12 * var(--u)) 100%, 0 100%);
}

.partner .tuev { width: calc(318 * var(--u)); }

.car {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(-28 * var(--u));
  width: calc(457 * var(--u));
  pointer-events: none;
}

/* Leistungen + Team */
.lower {
  position: relative;
  display: grid;
  grid-template-columns: calc(584 * var(--u)) 1fr;
  padding-bottom: calc(22 * var(--u));
}

.ribbon-big {
  margin: 0 0 calc(8 * var(--u));
  padding: calc(8 * var(--u)) calc(70 * var(--u)) calc(9 * var(--u)) calc(46 * var(--u));
  font-size: calc(31 * var(--u));
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  background: linear-gradient(90deg, #042a6e 0%, #0a47a6 55%, #1a63c6 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26 * var(--u)) 100%, 0 100%);
  text-shadow: 0 1px calc(3 * var(--u)) rgba(0, 20, 60, 0.4);
}

.services { margin: 0; padding: 0 calc(34 * var(--u)) 0 calc(34 * var(--u)); list-style: none; }

.services li {
  display: flex;
  align-items: center;
  min-height: calc(55 * var(--u));
  padding: calc(4 * var(--u)) 0;
  border-bottom: 1px solid #cfd9e6;
}
.services li:last-child { border-bottom: 0; }

.services .ico {
  flex: 0 0 calc(132 * var(--u));
  display: flex;
  justify-content: center;
  padding-right: calc(10 * var(--u));
}
.services .ico img { height: calc(48 * var(--u)); width: auto; }
.services .ico img.tall { height: calc(60 * var(--u)); }

.services strong {
  display: block;
  font-size: calc(23.5 * var(--u));
  font-weight: 700;
  line-height: 1.15;
}
.services span { display: block; font-size: calc(17 * var(--u)); line-height: 1.2; }

.team {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: calc(48 * var(--u));
  padding-right: calc(46 * var(--u));
}

.member {
  padding: 0 calc(18 * var(--u)) 0 calc(22 * var(--u));
  border-left: 1px solid var(--line);
}

.member img {
  width: calc(192 * var(--u));
  border: calc(2 * var(--u)) solid #fff;
  box-shadow: 0 calc(2 * var(--u)) calc(9 * var(--u)) rgba(10, 40, 90, 0.35);
}

.member h3 {
  margin: calc(8 * var(--u)) 0 0;
  font-size: calc(25 * var(--u));
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  white-space: nowrap;
}
.member .role { margin: 0; font-size: calc(17.5 * var(--u)); line-height: 1.3; white-space: nowrap; }
.member .contact { margin-top: calc(6 * var(--u)); }
.member .contact li { font-size: calc(17.5 * var(--u)); font-weight: 400; gap: calc(8 * var(--u)); }
.member .contact svg { width: calc(25 * var(--u)); height: calc(25 * var(--u)); }

/* ---------- Fuß der Vorlage ---------- */
.foot {
  display: grid;
  grid-template-columns: calc(226 * var(--u)) calc(358 * var(--u)) 1fr;
  align-items: center;
  padding: calc(26 * var(--u)) calc(36 * var(--u)) calc(34 * var(--u)) calc(44 * var(--u));
  color: #e8eef8;
  background:
    radial-gradient(60% 120% at 50% 40%, rgba(0, 78, 170, 0.75) 0%, rgba(0, 78, 170, 0) 75%),
    linear-gradient(90deg, #01377d 0%, #003f8e 45%, #03285c 100%);
  font-size: calc(20 * var(--u));
  line-height: 1.36;
}

.foot ul { margin: 0; padding: 0; list-style: none; }
.foot .reach li { display: flex; align-items: center; gap: calc(16 * var(--u)); white-space: nowrap; }
.foot .reach svg { flex: 0 0 auto; width: calc(26 * var(--u)); height: calc(26 * var(--u)); }

.foot address {
  font-style: normal;
  padding-left: calc(28 * var(--u));
  border-left: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.9);
}

.foot .members {
  padding-left: calc(20 * var(--u));
  border-left: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.9);
}
.foot .logos { display: flex; align-items: center; gap: calc(8 * var(--u)); }
.foot .logos img:nth-child(1) { width: calc(159 * var(--u)); }
.foot .logos img:nth-child(2) { width: calc(138 * var(--u)); }
.foot .logos img:nth-child(3) { width: calc(108 * var(--u)); }
.foot .members p { margin: calc(8 * var(--u)) 0 0; white-space: nowrap; }

/* ---------- Ergänzung unter der Vorlage: Kontakt + Rechtliches ---------- */
.below {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 18px 18px;
  color: #dfe8f5;
  background: #02214d;
  font-size: 15px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 13px 34px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border-radius: 4px;
}
.button:hover, .button:focus-visible { background: #dbe8f8; text-decoration: none; }

.below nav a { margin-left: 22px; text-decoration: underline; }
.below nav a:first-child { margin-left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Rechtstexte ---------- */
.legal-text { padding: 36px 44px 44px; font-size: 17px; line-height: 1.55; }
.legal-text h1 { margin: 0 0 20px; font-size: 32px; color: var(--navy); }
.legal-text h2 { margin: 28px 0 8px; font-size: 20px; color: var(--navy); }
.legal-text p, .legal-text ul { margin: 0 0 12px; }
.legal-text a { color: var(--blue); text-decoration: underline; }
.back { display: inline-block; margin-bottom: 18px; }
.head.small { padding-top: 18px; padding-bottom: 26px; }
.head.small .title { font-size: calc(34 * var(--u)); font-weight: 700; text-transform: uppercase; }

/* ---------- Handy und schmale Fenster: gleiche Bausteine, untereinander ---------- */
@media (max-width: 760px) {
  :root, body.fit { --u: 1px; }
  body.fit .flyer { max-width: 100%; }

  .head { display: block; padding: 22px 18px 34px; }
  .head h1 { font-size: 9vw; }
  .head .sub { font-size: 5.4vw; }
  .head .logo { margin-top: 16px; padding-left: 0; border-left: 0; }
  .head .logo img { width: 170px; }
  .head .wave { height: 18px; }

  .owner { display: block; padding: 20px 18px 24px; }
  .owner .photo { width: 190px; margin-bottom: 16px; }
  .owner h2 { font-size: 28px; }
  .owner h2 small { font-size: 22px; }
  .owner .qual { font-size: 16px; white-space: normal; }
  .owner .qual br { display: none; }
  .contact li { font-size: 19px; }
  .partner { min-height: 0; margin-top: 22px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ribbon-small { font-size: 19px; margin-bottom: 14px; }
  .partner .tuev { width: 240px; }
  .car { position: static; display: block; width: 100%; max-width: 420px; margin: 4px 0 -6px auto; }

  .lower { display: block; }
  .ribbon-big { font-size: 23px; padding: 9px 44px 10px 18px; margin-right: 12px; }
  .services { padding: 0 18px; }
  .services .ico { flex-basis: 78px; }
  .services .ico img { height: 36px; }
  .services .ico img.tall { height: 44px; }
  .services strong { font-size: 19px; }
  .services span { font-size: 15px; }

  .team { margin-top: 22px; padding: 0 18px; gap: 16px; }
  .member { padding: 0; border-left: 0; }
  .member img { width: 100%; max-width: 190px; }
  .member h3 { font-size: 20px; white-space: normal; }
  .member .role { font-size: 15px; white-space: normal; }
  .member .contact li { font-size: 15px; white-space: normal; word-break: break-word; }
  .member .contact svg { width: 20px; height: 20px; }

  .foot { display: block; padding: 22px 18px; font-size: 17px; }
  .foot address, .foot .members {
    margin-top: 16px; padding: 16px 0 0;
    border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.45);
  }
  .foot .logos { flex-wrap: wrap; }
  .foot .logos img:nth-child(1) { width: 130px; }
  .foot .logos img:nth-child(2) { width: 112px; }
  .foot .logos img:nth-child(3) { width: 88px; }
  .foot .members p { white-space: normal; }

  .legal-text { padding: 24px 18px 32px; }
  .head.small .title { font-size: 22px; }
}

@media (max-width: 430px) {
  .team { grid-template-columns: 1fr; }
}
