/* =========================================================================
   Dr.-Ing. Markus Ring – Interim Management
   Statischer One-Pager · Nachbau der Canva-Seite in sauberem HTML/CSS/JS
   ========================================================================= */

/* ---------- Webfont: Lato (selbst gehostet) ---------- */
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  color-scheme: light;

  --c-text:        #737373;   /* Fließtext                     */
  --c-heading:     #827d7b;   /* Überschriften Hero, Buttons   */
  --c-white:       #ffffff;
  --c-grad-from:   #e6e6e6;   /* Verlauf links                 */
  --c-grad-to:     #c2af0a;   /* Verlauf rechts (Gold)         */
  --c-focus:       #6b6b6b;

  --gradient: linear-gradient(90deg, var(--c-grad-from) 0%, var(--c-grad-to) 100%);

  /* Inhaltsbreite: entspricht der Gestaltungsfläche des Originals */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Fluide Typografie – skaliert wie im Original mit der Seitenbreite */
  --fs-name:    clamp(28px, 3.72vw, 47.6px);
  --fs-role:    clamp(15px, 1.67vw, 21.4px);
  --fs-claim:   clamp(24px, 2.98vw, 38.1px);
  --fs-motto:   clamp(17px, 1.86vw, 23.8px);
  --fs-lead:    clamp(15.5px, 1.49vw, 19px);
  --fs-btn:     clamp(13px, 1.30vw, 16.7px);
  --fs-h2:      clamp(26px, 3.55vw, 45.5px);
  --fs-body:    clamp(16px, 1.58vw, 20.2px);
  --fs-quote:   clamp(22px, 4.09vw, 52.4px);
  --fs-cite:    clamp(14px, 1.67vw, 21.4px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-text);
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.37;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul, blockquote, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75em 1.25em;
  background: var(--c-heading);
  color: var(--c-white);
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(170px, 19.6vw, 235px);
  min-height: clamp(36px, 3.8vw, 45.5px);
  padding: .35em 1em;
  background: var(--c-heading);
  color: var(--c-white);
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: .22em;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover,
.btn:focus-visible { background: #6e6a68; }
.btn:active { transform: translateY(1px); }

/* =========================================================================
   1 · Hero
   ========================================================================= */
.hero { background: var(--c-white); }

.hero__grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 538fr 804fr;   /* Verhältnis wie im Original */
  align-items: stretch;
}

/* --- linke, weiße Spalte --- */
.hero__left {
  display: flex;
  flex-direction: column;
  padding-bottom: 11%;                  /* 59 / 538 – gleiche Grundlinie wie im Verlaufsfeld */
}

.hero__portrait { line-height: 0; }
.hero__portrait img {
  width: 100%;
  aspect-ratio: 539 / 324;
  object-fit: cover;
  object-position: 50% 34%;
}

.hero__identity {
  text-align: center;
  margin-top: 13.4%;                    /* 72 / 538 */
}

.hero__identity h1 {
  font-size: var(--fs-name);
  font-weight: 400;
  line-height: 1.09;
  color: var(--c-heading);
}

.hero__role {
  margin-top: .55em;
  font-size: var(--fs-role);
  color: var(--c-heading);
}

.hero__action { margin-top: auto; text-align: center; }
.hero__left .hero__action { padding-top: 2em; }

/* --- rechte Spalte mit Farbverlauf --- */
.hero__panel {
  position: relative;
  background: var(--gradient);
  padding: 10.45% 13.7% 7.4% 18.8%;     /* 84 / 110 / 59 / 151 von 804 */
}

.hero__claim {
  font-size: var(--fs-claim);
  font-weight: 400;
  line-height: 1.195;
  color: var(--c-heading);
}

.rule {
  height: 2px;
  margin: .38em 0 0;
  border: 0;
  background: var(--c-white);
}

.hero__motto {
  margin-top: .62em;
  font-size: var(--fs-motto);
  color: var(--c-heading);
}

.hero__text {
  margin-top: 3.4em;
  font-size: var(--fs-lead);
  line-height: 1.453;
  color: var(--c-text);
}

/* Button und LinkedIn-Icon liegen auf einer Zeile */
.hero__panel .hero__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6em;
}

.hero__linkedin {
  display: block;
  position: absolute;
  right: -2.8%;                          /* Icon steht knapp über der Textkante */
  top: 50%;
  transform: translateY(-50%);
  width: 5.7%;                           /* 31 / 543 */
  min-width: 22px;
  aspect-ratio: 1;
  color: var(--c-white);
  transition: opacity .2s ease;
}
.hero__linkedin svg { width: 100%; height: 100%; fill: currentColor; }
.hero__linkedin:hover { opacity: .75; }

/* =========================================================================
   2 · Zitat
   ========================================================================= */
.quote {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  aspect-ratio: 1344 / 768;
  overflow: hidden;
}

.quote__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.quote__body {
  position: absolute;
  left: 28.05%;                          /* 377 / 1344 */
  top: 16.7%;                            /* 128 / 768  */
  width: 51.6%;                          /* 694 / 1344 */
  color: var(--c-white);
}

.quote__body p {
  font-size: var(--fs-quote);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
}

.quote__body cite {
  display: block;
  margin-top: .25em;
  font-size: var(--fs-cite);
  font-style: normal;
}

/* =========================================================================
   3 · Verlaufsblock: Über mich + Kontakt
   ========================================================================= */
.panel {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: clamp(28px, 6.2vw, 74px);   /* weißer Abschluss wie im Original */
  background: var(--gradient);
}

.panel__inner {
  padding: 2.35% 13.5% 21.4% 22.5%;      /* 31 / 179 / 283 / 298 von 1324 */
}

.about h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
}

.about > p { margin-top: 1.35em; }
.about > p:first-of-type { margin-top: 1.6em; }

.about h3,
.contact h3 {
  margin-top: 1.9em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.37;
  color: var(--c-text);
}

.about ul {
  margin-top: .05em;
  padding-left: 1.75em;
}
.about li {
  position: relative;
  margin-top: .1em;
}
.about li::before {
  content: "•";
  position: absolute;
  left: -1em;
}
.about li b { font-weight: 700; }

/* --- Kontaktbereich --- */
.contact { margin-top: 13%; }            /* 171 / 1324 */

.gallery {
  display: grid;
  grid-template-columns: 146fr 224fr 146fr 225fr;
  gap: 2.03%;                            /* 16 / 789 */
  aspect-ratio: 789 / 162;
}
.gallery li { overflow: hidden; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact > p {
  margin-top: 15.6%;                     /* 102 / 654 */
  font-size: var(--fs-lead);
  line-height: 1.36;
}

.contact address {
  font-size: var(--fs-lead);
  line-height: 1.36;
}
.contact address a { text-decoration: none; }
.contact address a:hover { text-decoration: underline; }

/* =========================================================================
   Scroll-Reveal
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

/* --- Tablet: Innenabstände etwas verkleinern --- */
@media (max-width: 1100px) {
  .panel__inner { padding: 4% 8% 16% 12%; }
  .contact > p  { margin-top: 12%; }
}

/* --- Mobil / kleine Tablets: Hero stapeln --- */
@media (max-width: 800px) {
  :root { --gutter: 20px; }

  .hero__grid { grid-template-columns: 1fr; }

  .hero__left { padding-bottom: 2.5em; }
  .hero__portrait img { aspect-ratio: 16 / 10; }
  .hero__identity { margin-top: 1.6em; }
  .hero__left .hero__action { padding-top: 1.6em; }

  .hero__panel { padding: 2.4em var(--gutter) 3.4em; }
  .hero__text  { margin-top: 1.8em; }

  .hero__panel .hero__action { gap: 1em; }
  .hero__linkedin {
    position: static;
    transform: none;
    width: 28px;
    flex: 0 0 auto;
  }

  .quote { aspect-ratio: 4 / 5; }
  .quote__bg { object-position: 62% 50%; }
  .quote__body {
    left: 0;
    right: 0;
    top: 0;
    width: auto;
    padding: 1.8em var(--gutter) 2.6em;
    background: linear-gradient(180deg, rgba(20, 20, 20, .55) 0%, rgba(20, 20, 20, .35) 60%, rgba(20, 20, 20, 0) 100%);
  }

  .panel__inner { padding: 2.6em var(--gutter) 3.4em; }
  .contact { margin-top: 3em; }
  .contact > p { margin-top: 2.4em; }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    aspect-ratio: auto;
  }
  .gallery li { aspect-ratio: 4 / 3; }

  .btn { width: 100%; max-width: 320px; }
  .hero__panel .btn { max-width: 260px; }
}

/* --- sehr kleine Geräte --- */
@media (max-width: 420px) {
  .quote__body p { line-height: 1.3; }
}

/* =========================================================================
   Druck
   ========================================================================= */
@media print {
  .hero__panel, .panel { background: none !important; }
  .btn, .hero__linkedin, .skip-link { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .quote { aspect-ratio: auto; }
  .quote__bg { display: none; }
  .quote__body { position: static; width: auto; color: #000; }
}
