/* herrdiel.de – gemeinsames Stylesheet
   Keine externen Schriften oder Dateien: alles kommt vom eigenen Server. */

:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --text: #2a2420;
  --muted: #6f655c;
  --line: #e3d9c8;
  --accent: #c2410c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --surface: #25211d;
    --text: #f1ebe2;
    --muted: #b3a89b;
    --line: #3a342d;
    --accent: #fb923c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Kopf */
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-style: italic; text-decoration: none; }
.site-nav a { text-decoration: none; margin-left: 8px; padding: 7px 16px; border-radius: 99px; font-size: .95rem; border: 1px solid var(--line); background: var(--surface); }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--accent); color: var(--accent); }

/* Startseite */
.hero { padding: 56px 0 40px; text-align: center; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.1; margin: 0 auto 22px; max-width: 16ch; letter-spacing: -0.01em; }
h1 i { color: var(--accent); }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0 auto; }
.chips { display: flex; gap: 10px; justify-content: center; margin: 28px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.chip { font-size: .9rem; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }

section { padding: 48px 0; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin: 0 0 26px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { --c: var(--accent); position: relative; display: block; background: var(--surface); border-radius: 26px; padding: 28px 28px 26px; text-decoration: none; overflow: hidden; border: 1px solid var(--line); transition: transform .25s; }
.card:hover { transform: rotate(-.6deg) translateY(-4px); }
.card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--g, var(--c)); opacity: .3; }
.card img { position: relative; display: block; width: 64px; height: 64px; border-radius: 18px; background: #fff; margin-bottom: 18px; box-shadow: 0 8px 18px -10px var(--c); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0 0 6px; }
.card p { margin: 0 0 16px; color: var(--muted); }
.more { font-weight: 600; color: var(--c); }

/* Farbe je App: --c für Link und Schatten, --g für den Kreis oben rechts (Farben aus dem Icon) */
.c-punktlandung { --c: #3f8a0f; --g: linear-gradient(135deg, #2bd42b, #f2e30a 55%, #e3261e); }
.c-brasstutor   { --c: #1d4f9c; --g: linear-gradient(135deg, #1d4f9c 45%, #d9a521); }
.c-facezapper   { --c: #c8241d; --g: linear-gradient(90deg, #14a04a, #e3261e); }
.c-basequation  { --c: #1d64c8; --g: linear-gradient(135deg, #9cc7ea, #1d64c8 60%, #e3261e); }
@media (prefers-color-scheme: dark) {
  .c-punktlandung { --c: #7fd14a; }
  .c-brasstutor   { --c: #e0b04a; }
  .c-facezapper   { --c: #f06a5f; }
  .c-basequation  { --c: #6ea8f0; }
}

.about { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 36px; margin: 24px 0 56px; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.avatar { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #c2410c); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 2.4rem; }
.about h2 { margin-bottom: 8px; font-size: 1.7rem; }
.about p { margin: 0 0 10px; color: var(--muted); }

/* Textseiten (Impressum, Datenschutz) */
.prose { max-width: 768px; padding-top: 24px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin: 0 0 28px; text-align: left; max-width: none; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose address { font-style: normal; color: var(--text); }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; }

/* Fuß */
.site-footer { padding: 0 0 48px; color: var(--muted); font-size: .9rem; text-align: center; }
.site-footer a { margin: 0 10px; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 28px; }
  .site-header .wrap { flex-direction: column; gap: 14px; }
  .site-nav a { margin: 0 4px; }
  .hero { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
