/* ferrisol.com – Stylesheet
   Schrift: Inter (SIL Open Font License, lokal eingebunden) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --text: #1f2328;
  --text-muted: #57606a;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --line: #e3e6e9;
  --accent: #f28c00;        /* Logo-Orange: nur für Flächen und Markierungen */
  --accent-text: #b35500;   /* Orange für Text auf Weiß (Kontrast ≥ 4,5:1) */
  --accent-hover: #8f4400;
  --radius: 10px;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color .2s ease;
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: auto; height: 36px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: background-size .25s ease, color .2s ease;
}
.site-nav a:hover { color: var(--text); background-size: 100% 2px; }

.site-nav .lang a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .25rem .65rem;
  background: none;
}
.site-nav .lang a:hover { color: var(--text); border-color: var(--text-muted); }

@media (max-width: 40rem) {
  .site-nav .nav-optional { display: none; }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--text-muted); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }

.hero .container {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .hero .container { grid-template-columns: 1.45fr 1fr; }
}

.hero h1 { max-width: 16ch; }
.hero h1 .accent {
  background: linear-gradient(transparent 68%, rgba(242, 140, 0, .28) 68%);
}

.hero .lead {
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-photo {
  position: relative;
  isolation: isolate;
  margin: 0;
  max-width: 22rem;
  width: 100%;
  justify-self: center;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

/* Dezentes Einblenden beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *,
  .hero-photo {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-photo { animation-delay: .2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

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

/* ---------- Button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.button:hover {
  color: var(--text);
  background: #ff9a14;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(242, 140, 0, .7);
}
.button svg { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.button:hover svg { transform: translateX(3px); }

/* ---------- Leistungen ---------- */

.services {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 46rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

.service {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service::before {
  content: "";
  position: absolute;
  left: 1.75rem; top: 0;
  width: 2.5rem; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transition: width .3s ease;
}
.service:hover {
  transform: translateY(-3px);
  border-color: #d4d8dc;
  box-shadow: 0 14px 30px -18px rgba(31, 35, 40, .35);
}
.service:hover::before { width: 4.5rem; }
.service p { margin: 0; color: var(--text-muted); }

/* ---------- Über mich ---------- */

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 52rem) {
  .about { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.about-text p:last-child { margin-bottom: 0; }

.facts {
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.facts div {
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
}
.facts dt {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.facts dd {
  margin: .15rem 0 0;
  color: var(--text-muted);
  font-size: .97rem;
}

/* ---------- Kontakt ---------- */

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 46rem) {
  .contact-list { grid-template-columns: repeat(3, 1fr); }
}

.contact-list a {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  height: 100%;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-list a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -18px rgba(31, 35, 40, .35);
}
.contact-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  font-weight: 600;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

/* ---------- Fußzeile ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .container { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.5rem; margin-bottom: .75rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .35rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal .note {
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
  color: var(--text-muted);
}

.placeholder {
  background: #fff3cd;
  color: #664d03;
  padding: 0 .3em;
  border-radius: 3px;
  font-weight: 600;
}

@media print {
  .site-header, .skip-link, .button { display: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
