/* thomaslaggner.at – Webvisitenkarte
   Nur System-Schriften und lokale Dateien (keine externen Aufrufe). */

:root {
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --line: #E6E4DD;
  --ink: #1E242B;
  --slate: #525B65;
  --petrol: #2C5E5A;
  --petrol-deep: #1F4542;
  --sand: #B88B4A;
  --tint: #F1F4F2;

  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Typografische Skala (Verhältnis ca. 1,25) */
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: clamp(1.9rem, 3.6vw, 2.45rem);
  --fs-hero: clamp(2.9rem, 7.4vw, 5.4rem);

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
h2 { font-size: var(--fs-xl); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-md); line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--petrol); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol-deep); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--slate); }
.small { font-size: var(--fs-sm); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--petrol); color: #fff; padding: 0.6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; color: #fff; }

.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 249, 246, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 0.5rem 2rem; flex-wrap: wrap;
  min-height: 4rem; padding-block: 0.6rem;
}
.brand {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a { color: var(--slate); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--petrol); }
.location-hint { margin: 0; font-size: var(--fs-sm); color: var(--slate); }
@media (max-width: 720px) {
  .location-hint { display: none; }
  .site-nav { gap: 1.1rem; }
}

/* Hero: das Porträt ist das tragende Element */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 400px 1fr; }
}
.portrait {
  position: relative; margin: 0;
  width: min(82vw, 400px);
  aspect-ratio: 4 / 5;
}
/* Versetzter Rahmen in Sandgold: ruhiger Akzent hinter dem Foto */
.portrait::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(14px, 14px);
  border: 1.5px solid var(--sand); border-radius: 12px;
}
.portrait picture, .portrait img {
  position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--tint), #EEE8DC);
}
.portrait-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 4.5rem; color: var(--petrol);
  background: linear-gradient(160deg, var(--tint), #EEE8DC); border-radius: 12px;
}
.portrait.ohne-bild picture { display: none; }

.hero-text h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.subline {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin: 0 0 1.75rem; padding-left: 1rem;
  border-left: 2px solid var(--sand);
  color: var(--petrol); font-size: var(--fs-md); line-height: 1.4; font-weight: 500;
}
.subline .sep { display: none; }
.intro { max-width: 34em; color: var(--slate); font-size: 1.1rem; line-height: 1.65; }

/* Knöpfe */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.75rem 1.35rem;
  border: 1.5px solid var(--petrol); border-radius: 6px;
  font: inherit; font-size: 0.97rem; font-weight: 600; line-height: 1.25;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--petrol); }
.btn-secondary:hover { background: var(--tint); color: var(--petrol-deep); }
@media (max-width: 520px) { .actions .btn { width: 100%; } }

/* Bänder */
.band { padding-block: var(--band); border-top: 1px solid var(--line); }
.band-tint { background: var(--tint); }
.band-head { display: grid; gap: 0.75rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.band-head p { margin: 0; color: var(--slate); max-width: 40em; }
@media (min-width: 860px) {
  .band-head { grid-template-columns: 400px 1fr; gap: 4.5rem; align-items: end; }
}

/* Wirkungsfelder als Wegweiser: Text links, Ziel-Domain rechts */
.signposts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.signpost {
  display: grid; gap: 1rem 4.5rem;
  padding-block: clamp(1.6rem, 3.5vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) {
  .signpost { grid-template-columns: 1fr 400px; align-items: start; }
  .signpost-link { order: 2; }
}
.signpost h3 { margin-bottom: 0.6rem; }
.signpost-text p { color: var(--slate); max-width: 36em; }
.signpost-text p:last-child { margin-bottom: 0; }
.place {
  font-size: var(--fs-sm); color: #7A5A2C;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.place::before { content: ""; width: 18px; height: 1.5px; background: var(--sand); }
.signpost-link {
  display: flex; flex-direction: column; gap: 0.35rem;
  text-decoration: none; color: var(--petrol);
  padding: 0.25rem 0;
}
.signpost-link .domain {
  font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.2;
  color: var(--ink); letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.signpost-link .cta { font-size: 0.95rem; font-weight: 600; }
.signpost-link:hover .domain { color: var(--petrol); }
.signpost-link:hover .cta { text-decoration: underline; }

/* Profil */
.profile-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 860px) { .profile-grid { grid-template-columns: 400px 1fr; } }
.motto {
  margin: 1.5rem 0 0; padding: 0;
  font-family: var(--serif); font-style: italic; font-size: var(--fs-md); line-height: 1.45;
  color: var(--petrol-deep); max-width: 18em;
}
.facts { margin: 0; display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact dt {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.4rem;
}
.fact dd { margin: 0; color: var(--slate); }
.fact-icon {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: var(--petrol); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.memberships {
  margin-top: 2.5rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(30, 36, 43, 0.15);
}
.memberships h3 { font-size: 1.12rem; margin-bottom: 0.9rem; }
.memberships ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--slate); }
.memberships li { margin-bottom: 0.45rem; }
.memberships li::marker { color: var(--sand); }
.memberships p { margin: 0; }

/* Kontakt: Visitenkarte als Motiv der Seite */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-intro h2 { margin-bottom: 1rem; }
.contact-intro > p { color: var(--slate); max-width: 30em; }
.actions-stack { flex-direction: column; align-items: flex-start; margin-top: 1.5rem; }
.vcard-status { min-height: 1.5em; margin: 0.75rem 0 0; font-size: var(--fs-sm); color: var(--slate); }

.visitcard {
  font-style: normal;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 1px 1px rgba(30, 36, 43, 0.04), 0 18px 40px -18px rgba(30, 36, 43, 0.22);
  max-width: 34rem;
}
.visitcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--petrol); border-radius: 4px 0 0 4px;
}
.vc-name { font-family: var(--serif); font-size: var(--fs-lg); margin: 0; line-height: 1.2; }
.vc-role { margin: 0.25rem 0 1.4rem; color: var(--slate); font-size: var(--fs-sm); }
.vc-lines p { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0 0 0.6rem; }
.vc-lines p:last-child { margin-bottom: 0; }
.vc-lines .icon { margin-top: 0.3em; color: var(--sand); }

.notice {
  grid-column: 1 / -1;
  border-left: 3px solid var(--petrol);
  background: var(--tint);
  padding: 1rem 1.25rem; border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}
.notice p { margin: 0; max-width: 60em; }

/* Fußzeile */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.92rem; color: var(--slate); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-links a, .link-button { color: var(--slate); }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px;
}
.footer-links a:hover, .link-button:hover { color: var(--petrol); }

/* Dialoge */
.modal {
  width: min(100% - 2rem, 720px); max-height: min(88vh, 900px);
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 24px 64px rgba(30, 36, 43, 0.25);
}
.modal::backdrop { background: rgba(30, 36, 43, 0.45); }
.modal[open] { animation: dialog-in 0.18s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-inner { display: flex; flex-direction: column; max-height: inherit; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 1.35rem; }
.modal-close {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--paper);
  cursor: pointer; color: var(--ink);
}
.modal-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.modal-close:hover { background: var(--tint); }
.modal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.5rem; font-size: 0.97rem; }
.modal-body h3 { font-size: 1.08rem; margin: 1.4rem 0 0.5rem; }
.modal-body h3:first-of-type { margin-top: 0.75rem; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0 0 1rem; }
.facts-list dt { font-weight: 600; }
.facts-list dd { margin: 0; }
@media (max-width: 520px) {
  .facts-list { grid-template-columns: 1fr; }
  .facts-list dd { margin-bottom: 0.5rem; }
}
.plain-list { padding-left: 1.1rem; }
.plain-list li { margin-bottom: 0.75rem; }

@media print {
  .site-header, .actions, .modal, .skip-link { display: none !important; }
  body { background: #fff; }
  .band { border: 0; padding-block: 1.5rem; }
}
.vc-lines .vc-sms { font-size: var(--fs-sm); color: var(--slate); }
.vc-lines .vc-sms a { color: var(--slate); }
.vc-lines .vc-sms .icon { opacity: 0.7; }
