/* ============================================
   FABIAN KETTLER — style.css
   Gemeinsame Styles für alle Seiten
   ============================================ */

:root {
  --bg:           #faf6ee;
  --bg-soft:      #f4ead6;
  --text:         #3a2a20;
  --text-muted:   #8a7c6d;
  --accent:       #9d6b56;
  --accent-strong:#7c5443;
  --brown-dark:   #4a3326;
  --border:       #e8dcc4;
  --max-width:    36rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--brown-dark); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-variation-settings: "SOFT" 70, "opsz" 14;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.wrap {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 0;
  flex: 1 0 auto;
}

/* ---- Header ---- */

header.site-header { margin-bottom: 1.2rem; }

header.site-header h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 100, "opsz" 144, "wght" 450;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  color: var(--brown-dark);
}

header.site-header h1 a {
  color: inherit;
  text-decoration: none;
  border: none;
  transition: color 0.2s ease;
}
header.site-header h1 a:hover { color: var(--accent); }

/* ---- Navigation ---- */

nav.topnav {
  margin-bottom: 0;
  padding: 0.4rem 0 0.15rem;
}

nav.topnav a {
  color: var(--text);
  text-decoration: none;
  margin-right: 1.4rem;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav.topnav a:hover,
nav.topnav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Nav-Trennwelle (ersetzt den Strich) */
.nav-wave-divider {
  margin-bottom: 3rem;
  line-height: 0;
}
.nav-wave-divider svg {
  display: block;
  width: 100%;
  height: 13px;
  color: var(--accent);
  opacity: 0.75;
}

/* ---- Sektionen ---- */

section { margin-bottom: 3.5rem; }

section h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 90, "opsz" 96, "wght" 500;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.2rem;
  color: var(--brown-dark);
}
section h2 a { color: inherit; border: none; transition: color 0.2s ease; }
section h2 a:hover { color: var(--accent); }

section h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "opsz" 36, "wght" 550;
  font-size: 1.15rem;
  margin: 2rem 0 0.7rem;
  color: var(--brown-dark);
}

p { margin: 0 0 1.1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

/* ---- Link-Zeilen (→ Mehr über mich) ---- */
.arrow-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.arrow-links a { font-style: italic; }

/* ---- Button ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.15rem;
  border-radius: 4px;
  font-size: 0.95rem;
  border: none !important;
  font-style: normal;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  line-height: 1.5;
  margin-top: 0.6rem;
}
.btn:hover {
  background: var(--accent-strong);
  color: #fff !important;
  border: none !important;
  transform: translateY(-1px);
}

/* ---- Buttons im Intro nebeneinander ---- */
.intro-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.intro-buttons .btn { margin-top: 0; }

/* ---- Projektbilder ---- */
.project-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0 0.4rem;
  border-radius: 3px;
}
.img-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 0.4rem;
}
.img-scroll img { max-width: 100%; height: auto; display: block; }
.image-caption {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 1.5rem;
}

/* ---- Download-Bereich ---- */
.download-section {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}
.download-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.7rem 0 0;
  font-style: italic;
}

/* ---- Clean-Liste ---- */
ul.clean { list-style: none; padding: 0; margin: 0 0 1.2rem; }
ul.clean li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
ul.clean li::before {
  content: "·";
  position: absolute;
  left: 0.3rem;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1.3;
}

/* ---- Vita ---- */
ul.vita { list-style: none; padding: 0; margin: 1rem 0 0; }
ul.vita li {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.55;
}
ul.vita .year {
  flex: 0 0 5.5rem;
  font-style: italic;
  color: var(--text-muted);
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* ---- Artikel-Liste ---- */
ul.article-list { list-style: none; padding: 0; margin: 0; }
ul.article-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}
ul.article-list li:last-child { border-bottom: 1px solid var(--border); }

.article-header {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.article-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "opsz" 24, "wght" 500;
  font-size: 1.1rem;
  color: var(--brown-dark);
  border-bottom: 1px solid var(--brown-dark);
}
.article-title:hover { color: var(--accent); border-bottom-color: var(--accent); }

.article-date {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin: 0 0 0.3rem;
  line-height: 1.55;
}
.more-link { margin-top: 1.2rem; font-style: italic; }

/* ---- Projektliste ---- */
ul.projects { list-style: none; padding: 0; margin: 1.5rem 0 0; }
ul.projects li { padding: 1.1rem 0; border-top: 1px solid var(--border); }
ul.projects li:last-child { border-bottom: 1px solid var(--border); }
ul.projects .project-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 80, "opsz" 24, "wght" 500;
  font-size: 1.1rem;
  margin: 0 0 0.2rem;
  display: block;
  color: var(--brown-dark);
  text-decoration: none;
  border: none;
}
ul.projects .project-title:hover { color: var(--accent); }
ul.projects .project-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
ul.projects .project-year {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* ---- Now-Meta ---- */
.now-meta {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- Sektions-Trenner (gerade Linie) ---- */
.ornament {
  width: 100%;
  height: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0 3rem;
  opacity: 1;
}
.ornament svg { display: none; }

/* ---- E-Mail kopieren (Kontakt) ---- */
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.copy-email:hover { border-color: var(--accent); color: var(--accent-strong); }
.copy-email:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.copy-email.copied {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.copy-email kbd {
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  padding: 0.05em 0.4em;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: #fff;
  color: var(--accent-strong);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8em;
  font-style: normal;
  box-shadow: 0 1px 0 var(--border);
  line-height: 1.4;
}
.copy-email.copied kbd {
  border-color: #fff;
  background: #fff;
  color: var(--accent);
}

/* ---- Artikel-Seite ---- */
.back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 2rem;
  border: none;
}
.back-link:hover { color: var(--accent); border: none; }

.article-byline {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: -0.6rem 0 2rem;
}

.article-body p { margin-bottom: 1.3rem; }

.article-location {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* ---- Impressum ---- */
.impressum-block h2 {
  font-size: 1rem;
  margin: 1.8rem 0 0.2rem;
  color: var(--brown-dark);
}
.impressum-block p { margin: 0; }

/* ---- Diverses ---- */
.quiet { color: var(--text-muted); font-style: italic; }

/* ---- Footer ---- */
footer.site-footer { margin-top: 3rem; position: relative; flex-shrink: 0; }

.footer-wave { display: block; width: 100%; height: 26px; color: var(--brown-dark); }

.footer-inner {
  background: var(--brown-dark);
  color: var(--bg-soft);
  text-align: center;
  padding: 1rem 1.5rem 1.1rem;
  margin-top: -1px;
}

.footer-inner p { margin: 0.4rem 0; font-size: 0.9rem; }
.footer-inner .footer-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  margin: 0;
  font-style: italic;
}
.footer-inner a { color: var(--bg-soft); border-bottom-color: rgba(244,234,214,0.35); }
.footer-inner a:hover { color: #fff; border-bottom-color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .wrap { padding: 2.5rem 1.25rem 0; }
  nav.topnav a { margin-right: 0.9rem; font-size: 0.95rem; }
  section h2 { font-size: 1.5rem; }
  ul.vita li { flex-direction: column; gap: 0.1rem; margin-bottom: 0.9rem; }
  ul.vita .year { flex: 0 0 auto; }
  .arrow-links { flex-direction: column; gap: 0.4rem; }
}

/* ---- (Animation entfernt) ---- */
