/* =========================================================
   Simmerle Artur – Website
   Eigenständige Version (ohne Squarespace)
   ========================================================= */

/* ---------- Schriften (lokal, frei lizenziert: SIL OFL) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/poppins-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/poppins-latin-ext-300-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben & Grundwerte ---------- */
:root {
  --dark: #3a3030;
  --light: #f3ebeb;
  --accent: #be0a45;
  --accent-hover: #a10839;
  --wine: #81132f;
  --pink: #ff8e90;
  --white: #ffffff;

  --font-head: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Poppins", "Segoe UI", Arial, sans-serif;
  --head-w: 580;   /* Strichstärke der Überschriften (Jost, wie futura-pt Medium) */

  --gutter: 2vw;
  --header-h: 70px;
  --wave-h: 6vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-w); margin: 0; letter-spacing: 0; }
p { margin: 0; }
strong { font-weight: 700; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 200;
  background: var(--accent); color: var(--white); padding: 12px 22px; border-radius: 300px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { left: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.2;
  letter-spacing: .02em; white-space: nowrap;
  padding: 1em 1.67em; border-radius: 300px; border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .2s, color .2s, opacity .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-white { background: var(--white); color: #000; }
.btn-white:hover { opacity: .88; }
.btn-small { font-size: 15.3px; padding: 15.3px 25.5px; }
.btn-large { font-size: 19.2px; padding: 22px 56px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--gutter) + 0px);
  background: var(--dark);
}
.header-logo { display: block; }
.header-logo img { height: 41px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.icon-link { display: inline-flex; width: 25px; height: 25px; color: var(--light); }
.icon-link svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.icon-link svg .dot { fill: currentColor; stroke: none; }
.icon-link:hover { opacity: .75; }

.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Startbereich mit Logo ---------- */
.hero {
  position: relative;
  background: var(--white);
  min-height: clamp(560px, 56.5vw, 820px);
  padding: calc(var(--header-h) + 3vw) 6vw calc(var(--wave-h) + 5vw);
  display: flex; align-items: center; justify-content: center;
}
.hero-logo { width: min(752px, 86vw); height: auto; }

.wave {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: var(--wave-h);
  display: block; pointer-events: none;
}
.wave path { fill: var(--wine); }

/* ---------- Slogan ---------- */
.slogan {
  background: var(--wine);
  padding: clamp(24px, 2.4vw, 40px) var(--gutter) clamp(40px, 4.6vw, 70px);
  text-align: center;
}
.slogan h1 {
  color: var(--light);
  font-size: clamp(2.45rem, 4.25vw, 3.75rem);
  line-height: 1.23;
}

/* ---------- Abschnittstitel ---------- */
.container { padding: 0 var(--gutter); }
.section-title {
  font-family: var(--font-head); font-weight: var(--head-w);
  font-size: clamp(1.8rem, 2.97vw, 2.64rem);
  line-height: 1.8;
}

/* ---------- Services ---------- */
.services {
  position: relative; isolation: isolate;
  background: var(--dark);
  color: var(--light);
  padding: 46px 0 84px;
}
.services-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("img/services-hintergrund.webp") center / cover no-repeat;
}
.services-bg::after { content: ""; position: absolute; inset: 0; background: rgba(58, 48, 48, .3); }
.services .section-title { color: var(--light); margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--light); color: var(--dark);
  padding: 19px 19px 30px;
}
.card-icon { width: 56px; height: auto; margin-bottom: 10px; }
.card h2 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; }
.card p { margin-top: 17px; }
.card p.lead { margin-top: 48px; }
.card p.spaced { margin-top: 48px; }
.card p.tight { margin-top: 17px; }

/* ---------- Galerie ---------- */
.projects { background: var(--light); padding: 46px 0 6vmax; }
.projects .section-title { margin-bottom: 3vmax; }

.carousel { position: relative; }
.track {
  --gap: 20px;
  display: flex; align-items: stretch; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -2px; }
.slide {
  flex: 0 0 calc((100% - 2 * var(--gutter) - 2 * var(--gap)) / 3.1);
  scroll-snap-align: start;
}
.slide img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e6dcdc; }

.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--white);
  display: grid; place-items: center;
  transition: background-color .2s;
}
.car-btn:hover { background: var(--accent-hover); }
.car-btn svg { width: 30px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.car-prev { left: var(--gutter); }
.car-next { right: var(--gutter); }

/* ---------- Vision / Aufruf ---------- */
.vision {
  background: var(--dark); color: var(--light);
  padding: 9.5vw 0 14px;
  overflow: hidden;
}
.vision-grid {
  display: grid; grid-template-columns: 27.5vw 1fr; column-gap: 8.8vw;
  align-items: center;
  padding: 0 6vw 0 10vw;
}
.vision-media img { width: 100%; height: auto; aspect-ratio: 380 / 428; object-fit: cover; }
.vision-text h3 { font-size: clamp(1.5rem, 2.33vw, 2.07rem); line-height: 1.33; }
.vision-text p { margin-top: 34px; }
.vision-text .btn { margin-top: 72px; }
.farbband { width: 100%; height: auto; padding: 0 var(--gutter); margin-top: 5vw; }

/* ---------- Kontakt ---------- */
.contact {
  position: relative; isolation: isolate;
  background: var(--pink);
  padding: 32px 6vw calc(var(--wave-h) + 28px);
  min-height: 632px;
}
.contact-bg { position: absolute; inset: 0; z-index: -1; background: url("img/kontakt-hintergrund.webp") center / cover no-repeat; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 142, 144, .15); }
.contact-inner { max-width: 420px; }
.contact h2 { color: var(--accent); font-size: clamp(1.8rem, 2.97vw, 2.64rem); line-height: 1.3; margin-bottom: 34px; }
.contact p { margin-top: 17px; position: relative; padding-left: 28px; }
.contact p:first-of-type { margin-top: 0; }
.contact .ico { position: absolute; left: 0; top: 0; width: 26px; font-size: .95em; }
.contact .ico-mid { top: 1.8em; }
.contact a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact a:hover { color: var(--accent); }
.contact .btn { margin-top: 48px; color: var(--white); text-decoration: none; }
.contact .wave path { fill: var(--wine); }

.site-footer { background: var(--wine); min-height: 80px; margin-top: -1px; display: flex; align-items: center; justify-content: center; padding: 18px var(--gutter) 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; font-size: 13px; color: rgba(243, 235, 235, .75); }
.footer-links a { color: rgba(243, 235, 235, .9); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.form-note a { color: inherit; }

/* ---------- Seite Impressum & Datenschutz ---------- */
.legal-header { justify-content: space-between; }
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--header-h) + 56px) 24px 80px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.2; color: var(--accent); margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.3; margin: 48px 0 18px; }
.legal h2 .it { opacity: .55; }
.legal h3 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal p { margin-bottom: 14px; }
.legal a { color: var(--accent); }
.legal .muted { font-size: 14px; opacity: .7; }

/* ---------- Formular-Popup ---------- */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 3vh 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(58, 48, 48, .55); animation: fade .2s ease; }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: 94vh; overflow-y: auto;
  background: var(--light); color: var(--dark);
  padding: 48px 56px 44px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  animation: pop .22s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer; color: var(--dark); display: grid; place-items: center;
}
.modal-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.modal h2 { font-size: 1.7rem; line-height: 1.3; margin-bottom: 28px; }

.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form legend { font-size: 15px; padding: 0; margin-bottom: 2px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: block; margin-bottom: 22px; }
.field .label { display: block; font-size: 14px; line-height: 1.5; }
.field .req { opacity: .6; font-size: .9em; }
.field input, .field textarea {
  display: block; width: 100%;
  font: inherit; font-size: 16px; color: var(--dark);
  background: transparent; border: 0; border-bottom: 1px solid rgba(58, 48, 48, .55); border-radius: 0;
  padding: 8px 0; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); border-bottom-width: 2px; padding-bottom: 7px; }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--accent); }
.field .err { display: block; color: var(--accent); font-size: 13px; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; opacity: .75; margin: 4px 0 18px; }
.form-error { color: var(--accent); font-size: 15px; margin-bottom: 16px; }
.btn-submit { font-size: 15px; padding: 14px 30px; }
.btn-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-success { text-align: left; padding: 10px 0; }
.form-success p { margin: 0 0 28px; }

/* =========================================================
   Tablet (768–1100 px)
   ========================================================= */
@media (max-width: 1100px) {
  body { font-size: 16px; }
  :root { --header-h: 80px; }
  .header-logo img { height: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card p.lead, .card p.spaced { margin-top: 32px; }
  .slide { flex-basis: calc((100% - 2 * var(--gutter) - var(--gap)) / 2.15); }
  .vision-grid { grid-template-columns: 30vw 1fr; column-gap: 6vw; padding: 0 5vw 0 8vw; }
  .vision-media img { aspect-ratio: 203 / 300; }
  .vision-text .btn { margin-top: 40px; }
  .contact { padding-left: 6vw; }
}

/* =========================================================
   Handy (bis 767 px)
   ========================================================= */
@media (max-width: 767px) {
  :root { --header-h: 89px; --gutter: 8px; --wave-h: 9vw; }
  body { font-size: 16px; }

  .site-header { padding: 0 28px; }
  .header-actions { display: none; }
  .legal-header .btn-small { font-size: 13px; padding: 12px 18px; }
  .header-logo { order: 2; }
  .header-logo img { height: 25px; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 11px;
    width: 34px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .burger span { display: block; height: 1px; background: var(--light); width: 100%; }
  .burger::before { content: ""; display: block; height: 1px; background: var(--light); width: 100%; }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 60;
    background: var(--dark); color: var(--light);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 0 28px 44px;
    animation: fade .2s ease;
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
  .menu-close { width: 34px; height: 34px; padding: 4px; border: 0; background: transparent; color: var(--light); cursor: pointer; }
  .menu-close svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.4; fill: none; }
  .mobile-menu-logo { height: 25px; width: auto; }
  .mobile-menu { overflow-y: auto; }
  .mobile-menu-contact { padding: 28px 0 32px; }
  .menu-title { font-family: var(--font-head); font-weight: var(--head-w); font-size: 2.1rem; line-height: 1.2; color: var(--light); margin-bottom: 22px; }
  .menu-line { display: flex; gap: 12px; font-size: 17px; line-height: 1.7; margin-top: 14px; color: var(--light); }
  .menu-line .ico { flex: 0 0 24px; font-size: .95em; }
  .menu-line a { color: var(--light); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(243,235,235,.5); }
  .menu-line a:active, .menu-line a:hover { color: var(--pink); }
  .menu-small { font-size: 14px; opacity: .85; margin-top: 22px; }
  .mobile-menu-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 44px; }
  .mobile-menu-bottom .btn { width: 100%; max-width: 410px; }

  .hero { min-height: 560px; padding: calc(var(--header-h) + 30px) 24px calc(var(--wave-h) + 50px); }
  .hero-logo { width: 100%; max-width: 440px; }

  .slogan { padding: 22px 8px 40px; }

  .services { padding: 28px 0 60px; }
  .services .section-title { margin-bottom: 30px; }
  .cards { grid-template-columns: 1fr; gap: 30px; }
  .card { padding: 21px 21px 28px; }
  .card-icon { width: 62px; }
  .card p.lead, .card p.spaced { margin-top: 28px; }

  .projects { padding-top: 28px; }
  .projects .section-title { margin-bottom: 24px; }
  .slide { flex-basis: calc(86% - var(--gutter)); }
  .carousel { padding-bottom: 76px; }
  .car-btn { top: auto; bottom: 0; transform: none; width: 48px; height: 48px; }
  .car-btn svg { width: 22px; height: 12px; }
  .car-prev { left: calc(50% - 53px); }
  .car-next { right: calc(50% - 53px); }

  .vision { padding: 42px 0 16px; }
  .vision-grid { grid-template-columns: 1fr; row-gap: 46px; padding: 0 23px; }
  .vision-media img { aspect-ratio: auto; }
  .vision-text h3 { font-size: 1.52rem; }
  .vision-text p { margin-top: 30px; }
  .vision-text .btn { margin: 26px auto 0; display: flex; width: fit-content; }
  .farbband { margin-top: 30px; }

  .contact { padding: 32px 23px calc(var(--wave-h) + 34px); min-height: 0; }
  .contact-bg { background-image: url("img/kontakt-hintergrund-handy.webp"); background-position: 60% center; }
  .services-bg { background-image: url("img/services-hintergrund-handy.webp"); }
  .contact-bg::after { background: linear-gradient(180deg, rgba(243,235,235,.82) 0%, rgba(243,235,235,.72) 72%, rgba(243,235,235,.15) 100%); }
  .contact-inner { max-width: none; }
  .contact .btn { margin-top: 40px; }

  .modal { padding: 0; align-items: stretch; }
  .modal-panel { width: 100%; max-height: none; height: 100%; padding: 56px 23px 32px; box-shadow: none; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
