/* michaelschramm.at – Stylesheet */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0f2a44;      /* Text, dunkle Flächen */
  --sea: #1f5f99;       /* Primärblau, Links, Buttons */
  --sea-dark: #174a78;
  --chart: #eaf1f7;     /* helles Seekartenblau */
  --line: #b7cadb;      /* Tiefenlinien, Trenner */
  --signal: #e2a62c;    /* Tonnengelb, nur für Wegpunkte */
  --paper: #ffffff;
  --muted: #4c6178;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* Sprachumschaltung */
html[lang="de"] .en,
html[lang="en"] .de { display: none !important; }

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sea); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 66ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--chart);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--navy); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--navy); }
.nav { display: flex; gap: 1.5rem; align-items: center; font-size: 1rem; }
.nav a { color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--sea); text-decoration: underline; }
.lang-toggle {
  font: inherit; font-size: .95rem; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--navy);
  border-radius: 999px; padding: .2rem .8rem;
}
.lang-toggle:hover { border-color: var(--sea); color: var(--sea); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .site-header .wrap { gap: 1rem; }
  .menu-toggle {
    display: inline-block; font: inherit; font-size: 1rem; background: none;
    border: 1px solid var(--line); border-radius: 6px; padding: .3rem .8rem; color: var(--navy); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .55rem 0; width: 100%; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-role { font-size: 1.1rem; color: var(--muted); margin-bottom: 1.4rem; }
.hero-role strong { color: var(--navy); font-weight: 600; display: block; font-size: 1.25rem; }
.hero .lead { font-size: 1.3rem; line-height: 1.55; color: var(--navy); max-width: 34em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 50% 50% 4px 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 420px; margin-left: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-block; font-weight: 600; font-size: 1.05rem; text-decoration: none;
  padding: .8rem 1.5rem; border-radius: 6px; border: 2px solid var(--sea);
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; text-decoration: none; }
.btn-secondary { color: var(--sea); background: transparent; }
.btn-secondary:hover { background: var(--chart); text-decoration: none; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 220px; margin-left: 0; }
}

/* Abschnitte */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--chart); }
.section-dark { background: var(--navy); color: #e7eef5; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #9fc6ec; }
.section-intro { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.section-dark .section-intro { color: #b8cadb; }

/* Kurs: Identifizieren – Pilotieren – Ausrollen */
.course { margin-top: 3rem; }
.course-line { width: 100%; height: 110px; display: block; overflow: visible; }
.course-line .route {
  fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-dasharray: 9 8;
}
.course-line .wake { fill: none; stroke: var(--line); stroke-width: 1; }
.course-line .wp circle.ring { fill: var(--paper); stroke: var(--sea); stroke-width: 2.5; }
.course-line .wp circle.core { fill: var(--signal); }
.course-line .wp text { font-family: var(--serif); font-size: 15px; font-weight: 600; fill: var(--navy); text-anchor: middle; }
.course-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); list-style: none; padding: 0; margin: 1.5rem 0 0; }
.course-steps h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: .4em; }
.course-steps p { font-size: 1.05rem; color: var(--muted); }
.step-no { display: none; }

/* Route-Animation: einmalig beim ersten Sichtbarwerden */
.js .course-line .route { stroke-dashoffset: 0; }
.js .course-line.ready .route { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .course-line .route-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
  .js .course-line.in-view .route-draw { transition: stroke-dashoffset 2.2s ease-in-out; stroke-dashoffset: 0; }
  .js .course-line .wp { opacity: 0; transition: opacity .4s ease; }
  .js .course-line.in-view .wp { opacity: 1; }
  .js .course-line.in-view .wp-2 { transition-delay: .9s; }
  .js .course-line.in-view .wp-3 { transition-delay: 1.8s; }
}

@media (max-width: 760px) {
  .course-line { display: none; }
  .course-steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .course-steps li { padding-left: 3rem; position: relative; }
  .step-no {
    display: grid; place-items: center; position: absolute; left: 0; top: .1rem;
    width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--sea);
    font-family: var(--serif); font-weight: 600; background: var(--paper);
  }
}

/* Leistungen */
.services { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 5vw, 4rem); padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 500; }
.service .kicker { color: var(--muted); font-size: 1.05rem; }
.service ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.service li { margin-bottom: .45rem; max-width: 60ch; }
.service li::marker { color: var(--sea); }
.service-main h3 { font-size: clamp(1.8rem, 3.2vw, 2.3rem); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: .5rem; } }

/* Bühne */
.stage-figure { margin: 2.5rem 0 0; }
.stage-figure img { width: 100%; border-radius: 4px; }
.stage-figure figcaption { font-size: .9rem; color: #b8cadb; margin-top: .6rem; }
.stages { columns: 3 14rem; column-gap: 2.5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.stages li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid rgba(183,202,219,.25); }
.stages li .sub { display: block; font-size: .92rem; color: #9fb4c8; }

/* Erfahrung */
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.timeline .years { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--sea); }
.timeline h3 { font-size: 1.25rem; margin-bottom: .2em; }
.timeline .role { color: var(--muted); margin-bottom: .4em; }
.timeline p { font-size: 1.02rem; margin: 0; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

.names { margin-top: 3rem; }
.names p.label { color: var(--muted); margin-bottom: .6rem; }
.names ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }

/* Stimmen */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.quotes blockquote { margin: 0; padding-top: 1.2rem; border-top: 3px solid var(--sea); }
.quotes blockquote p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.quotes .placeholder p { color: var(--muted); font-style: italic; }
.quotes footer { font-size: 1rem; }
.quotes footer strong { display: block; }
.quotes footer span { color: var(--muted); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Skipper */
.skipper .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.skipper img { border-radius: 4px; }
.skipper .big { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
@media (max-width: 760px) { .skipper .wrap { grid-template-columns: 1fr; } .skipper img { max-width: 320px; } }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-direct { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-direct li { margin-bottom: .5rem; }
form .field { margin-bottom: 1.1rem; }
form label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
form .optional { font-weight: 400; color: var(--muted); }
form input[type=text], form input[type=email], form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--navy);
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
form input:focus, form textarea:focus { border-color: var(--sea); outline: 2px solid var(--sea); outline-offset: 0; }
form textarea { min-height: 9rem; resize: vertical; }
form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }
form .consent input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; flex: none; }
form .consent label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -5000px; }
.btn[type=submit] { cursor: pointer; font-family: inherit; }
.notice { padding: .9rem 1.1rem; border-radius: 6px; margin-bottom: 1.5rem; display: none; }
.notice.show { display: block; }
.notice.ok { background: #e3f1e6; color: #1d4d2a; }
.notice.err { background: #fbe7e4; color: #7a2418; }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; } }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; }

/* Unterseiten (CV, Impressum, Datenschutz) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; background: var(--chart); }
.page-head p { color: var(--muted); font-size: 1.2rem; }
.page-body { padding: 2.5rem 0 4rem; }
.page-body h2 { font-size: 1.8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.page-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.page-body h3 { font-size: 1.2rem; margin: 1.5rem 0 .3rem; }
.cv-entry { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--chart); }
.cv-entry:first-of-type { border-top: 0; }
.cv-entry .years { font-family: var(--serif); font-weight: 600; color: var(--sea); }
.cv-entry h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.cv-entry .where { color: var(--muted); margin-bottom: .5rem; }
.cv-entry ul { margin: .3rem 0 0; padding-left: 1.2rem; font-size: 1.02rem; }
.cv-entry li::marker { color: var(--sea); }
.cv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 3rem; }
.cv-grid ul { padding-left: 1.2rem; margin: .3rem 0; }
@media (max-width: 640px) { .cv-entry, .cv-grid { grid-template-columns: 1fr; gap: .3rem; } }

@media print {
  .site-header, .site-footer, .lang-toggle, .actions { display: none; }
  .page-head { background: none; }
  body { font-size: 11pt; }
}
