/* Basis */
:root {
  --bg-color: #f0eee6;
  --surface-color: #fcfbf7;
  --surface-strong: #ffffff;
  --text-color: #2f2d28;
  --muted-color: #6f695d;
  --border-color: rgba(63, 58, 49, 0.12);
  --shadow-soft: 0 18px 42px rgba(66, 58, 46, 0.08);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 14px;
  --page-accent: #75877c;
  --page-accent-soft: rgba(117, 135, 124, 0.15);
  --max-width: 1180px;
}

.page-projects {
  --page-accent: #9f7b61;
  --page-accent-soft: rgba(159, 123, 97, 0.16);
}

.page-travel {
  --page-accent: #6e8f88;
  --page-accent-soft: rgba(110, 143, 136, 0.16);
}

.page-hobbies {
  --page-accent: #847265;
  --page-accent-soft: rgba(132, 114, 101, 0.16);
}

.page-contact {
  --page-accent: #7a8764;
  --page-accent-soft: rgba(122, 135, 100, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.7;
}

body.modal-open,
body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

main {
  flex: 1;
}

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
}

.section-space {
  padding: 4.5rem 0;
}

.alt-surface {
  background: rgba(255, 255, 255, 0.38);
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-accent);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted-color);
}

.section-intro {
  margin-bottom: 2rem;
}

.section-intro h1,
.section-intro h2,
.split-heading h2,
.page-intro h1,
.hero h1 {
  margin: 0;
  line-height: 1.12;
}

.section-intro h2,
.split-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.intro-narrow {
  max-width: 760px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-note {
  max-width: 360px;
  color: var(--muted-color);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(63, 58, 49, 0.08);
  background: rgba(240, 238, 230, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 82px;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--muted-color);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.72);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text-color);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons und panels */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.button {
  background: var(--text-color);
  color: #fff;
}

.button-secondary {
  border-color: var(--border-color);
  background: transparent;
}

.hero .button-secondary {
  border-color: transparent;
  background: var(--text-color);
  color: #fff;
}

.button:hover,
.button-secondary:hover,
.text-link:hover,
.footer-link:hover {
  transform: translateY(-2px);
}

.panel {
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.soft-panel {
  background: #faf8f1;
  box-shadow: none;
}

.accent-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 241, 232, 0.96));
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--page-accent);
}

/* Startseite */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.hero-text {
  max-width: 620px;
}

.hero-image {
  background: var(--surface-strong);
  border: 1px solid var(--border-color);
  border-radius: 38px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.about-grid .panel,
.timeline-content,
.contact-copy,
.contact-form,
.project-copy,
.project-visual,
.project-card {
  padding: 1.6rem;
}

.simple-list {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 104px;
  width: 1px;
  background: rgba(63, 58, 49, 0.14);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.timeline-year {
  position: relative;
  padding-top: 0.3rem;
  font-weight: 600;
  color: var(--page-accent);
}

.timeline-year::after {
  content: "";
  position: absolute;
  top: 0.7rem;
  right: 27px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 0 7px rgba(117, 135, 124, 0.14);
}

.table-wrapper {
  overflow-x: auto;
  padding: 0;
}

.skills-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.skills-table th,
.skills-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.skills-table th {
  font-size: 0.95rem;
  background: rgba(117, 135, 124, 0.08);
}

.skills-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Seitenintro */
.page-intro {
  padding-bottom: 2.5rem;
}

.page-intro h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

/* Projekte */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 1.6rem;
}

.project-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr;
  gap: 1rem;
  align-items: center;
  height: 100%;
}

.input-grid {
  display: grid;
  gap: 1rem;
}

.image-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: #f9f7f0;
  border: 1px solid rgba(63, 58, 49, 0.08);
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--muted-color);
}

.small-card img {
  aspect-ratio: 16 / 10;
}

.result-card img {
  aspect-ratio: 4 / 5;
}

.flow-arrow {
  font-size: 2rem;
  color: var(--page-accent);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.meta-grid .panel,
.document-layout .panel {
  padding: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--page-accent-soft);
  color: var(--text-color);
  font-size: 0.95rem;
}

.tall-card img,
.cover-card img {
  aspect-ratio: 4 / 5;
}

.documentary-card {
  padding: 1.8rem;
}

.document-header {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.6rem;
  align-items: start;
}

.document-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.pdf-box {
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-large);
}

/* Reisen */
.travel-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.gallery-tile {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-medium);
  background: var(--surface-strong);
  border: 1px solid rgba(63, 58, 49, 0.08);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 3 / 4;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-tile.landscape {
  grid-column: span 2;
}

.gallery-tile.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.gallery-tile.ratio-2-3 {
  aspect-ratio: 2 / 3;
}

.gallery-tile.ratio-3-2 {
  aspect-ratio: 3 / 2;
}

/* Hobbies */
.hobby-stack {
  display: grid;
  gap: 1.4rem;
}

.hobby-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
  padding: 1.2rem;
}

.hobby-section-reverse .hobby-image {
  order: 2;
}

.hobby-section-reverse .hobby-copy {
  order: 1;
}

.hobby-image {
  border-radius: calc(var(--radius-large) - 6px);
  overflow: hidden;
}

.hobby-image img,
.hobby-image video {
  aspect-ratio: 5 / 4;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.hobby-copy {
  padding: 0.4rem 0.4rem 0.4rem 0;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}

.contact-info-list p {
  margin: 0 0 0.8rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(63, 58, 49, 0.15);
  border-radius: 16px;
  background: #fffdf9;
  color: var(--text-color);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--page-accent);
  box-shadow: 0 0 0 4px var(--page-accent-soft);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #a65c52;
  box-shadow: 0 0 0 4px rgba(166, 92, 82, 0.12);
}

.form-error {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.88rem;
  color: #a65c52;
}

.form-success {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(122, 135, 100, 0.12);
  color: #4f5c3d;
}

/* Footer */
.site-footer {
  padding: 0 0 1.5rem;
}

.footer-link {
  display: inline-flex;
  color: var(--muted-color);
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.2rem;
  margin-left: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(63, 58, 49, 0.08);
  color: var(--muted-color);
}

.footer-bottom p {
  margin: 0;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(43, 40, 34, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  padding: 2rem;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.modal-card h2 {
  margin-top: 0;
}

.modal-content p {
  margin: 0 0 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(63, 58, 49, 0.08);
  font-size: 1.4rem;
  cursor: pointer;
}
