/* Michael Fritsch – E-Commerce Dienstleistungen */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1f2428;
  --ink-2: #4a5157;
  --muted: #747b80;
  --line: #e4dfd6;
  --paper: #faf8f4;
  --white: #ffffff;
  --accent: #2b5741;
  --accent-hover: #1f4434;
  --accent-soft: #e3ede7;
  --ok: #2f6b45;
  --error: #b42318;
  --wrap: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em;
  border-radius: 6px;
  border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.logo img { height: 38px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.site-nav .btn, .header-call { padding: .55em 1em; font-size: 1rem; }
.header-call { margin-left: 10px; }
@media (max-width: 860px) {
  html { scroll-padding-top: 108px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  .logo, .header-call { margin-bottom: 10px; }
  .site-nav:has(a:not(.btn)) {
    order: 3; flex: 0 0 calc(100% + 40px); margin: 0 -20px; padding: 0 20px;
    gap: 22px; min-height: 44px; border-top: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a:not(.btn) { font-size: 1rem; padding: 10px 0; }
  .header-call { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-call span { display: none; }
}
@media (max-width: 420px) {
  .logo img { height: 30px; }
  .site-nav:has(a:not(.btn)) { gap: 20px; }
  .site-nav a[href="#kontakt"] { display: none; } /* Kontakt steckt in der Anrufleiste unten */
}

/* Hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
.hero .lead { font-size: 1.25rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .note { color: var(--muted); font-size: 1rem; margin: 0; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { font-size: .95rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 300px; }
}

/* Abschnitte */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-white { background: var(--white); }
.narrow { max-width: 720px; }
.narrow p { color: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* Leistungen als Liste */
.services { margin-top: 32px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.service h3 { margin: 0; }
.service p { color: var(--ink-2); }
.service .tools { color: var(--muted); font-size: 1rem; margin: 0; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; } }

/* Referenzen */
.refs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 32px; }
.ref { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.ref-img img { width: 100%; border: 1px solid var(--line); }
.ref p { color: var(--ink-2); }
@media (max-width: 960px) { .refs { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .ref { grid-template-columns: 1fr; gap: 16px; } .ref-img { max-width: 220px; } }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 14px 0; color: var(--ink-2); }
.steps li::before { content: counter(step) "."; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--accent); }
.steps strong { color: var(--ink); }

/* Über mich */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--ink-2); }
.about .region { background: var(--white); border-left: 3px solid var(--accent); padding: 20px 24px; }
.about .region p { margin: 0; }
.about .region p + p { margin-top: .8em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact .intro { color: var(--ink-2); }
.contact-ways { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-ways li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-ways li:last-child { border-bottom: 1px solid var(--line); }
.contact-ways small { display: block; color: var(--muted); font-size: .95rem; }
.contact-ways a { font-size: 1.3rem; font-weight: 600; text-decoration: none; }
.contact-ways a:hover { text-decoration: underline; }
.contact-ways address { font-style: normal; color: var(--ink-2); }

.form { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.form h3 { margin-bottom: .2em; }
.form .hint { color: var(--muted); font-size: 1rem; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid #cfc8bc; border-radius: 4px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; margin-top: 4px; }
.form .privacy { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }
.form-msg { padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.form-msg.error { background: #fdecea; color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) {
  .form { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Footer */
.site-footer { background: var(--ink); color: #c4c8cb; padding: 28px 0 32px; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer nav { display: flex; gap: 20px; }

/* Mobile Anrufleiste */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .callbar .btn { padding: .75em .8em; }
  body.has-callbar { padding-bottom: 76px; }
  /* Die Leiste unten ersetzt auf dem Handy die übrigen Kontakt-Buttons */
  .has-callbar .header-call, .has-callbar .hero .cta-row { display: none; }
  .has-callbar .hero .note { margin-top: 4px; }
}

/* Unterseiten */
.page { padding: 56px 0 80px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.page h2 { font-size: 1.55rem; margin-top: 1.8em; }
.page h3 { font-size: 1.2rem; margin-top: 1.4em; }
.page p, .page li { color: var(--ink-2); }
.page address { font-style: normal; color: var(--ink-2); margin-bottom: 1em; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }

.thanks { padding: 96px 0; }
.thanks .wrap { max-width: 640px; }
.thanks p { color: var(--ink-2); font-size: 1.15rem; }

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

/* Pakete und Preise */
.price-intro { color: var(--ink-2); max-width: 40em; }
.prices { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 56px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.price { padding: 28px 0; border-top: 1px solid var(--line); }
.price h3 { margin-bottom: .2em; }
.price .amount { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--accent); margin-bottom: .6em; }
.price p { color: var(--ink-2); }
.price ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.price li { margin-bottom: .3em; }
.price .time { color: var(--muted); font-size: 1rem; margin: 0; }
.price-extra { margin-top: 28px; color: var(--ink-2); }
.price-note { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .prices { grid-template-columns: 1fr; }
  .price { padding: 24px 0; }
}
