/* ==========================================================
   Bettina Haskamp / Carolina Conrad – Website
   Basis-Stylesheet, reines CSS, keine Frameworks
   ========================================================== */

@font-face {
  font-family: "Homemade Apple";
  src: url("../fonts/homemade-apple.woff2") format("woff2"),
       url("../fonts/homemade-apple.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("../fonts/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-dark: #163752;      /* dunkles Marineblau, für Kopfleiste und Footer */
  --color-dark-2: #0e2438;    /* noch dunkleres Blau, für den Hero-Verlauf */
  --color-bg: #faf7f1;        /* warmes Off-White für Seiteninhalt */
  --color-text: #2a2a28;
  --color-text-soft: #55534c;
  --color-accent: #2f7a82;    /* Petrol/Türkis, Links */
  --color-accent-hover: #c9a13a; /* warmes Gold, Hover */
  --color-ochre-dark: #7c5a17;   /* dunkler Ockerton, für Text auf hellem Mauerwerk */
  --font-logo: "Homemade Apple", cursive;
  --font-nav: "Karla", sans-serif;
  --font-body: "Lora", serif;
  --content-width: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3 {
  font-family: var(--font-nav);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

/* ---------- Gemeinsame Navigation (Logo + Menüpunkte) ---------- */

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-nav);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo {
  font-family: var(--font-logo);
  font-size: 3.25rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Startseite: Hero mit Vollbild-Foto ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(14, 36, 56, 0.88) 0%,
    rgba(14, 36, 56, 0.78) 30%,
    rgba(14, 36, 56, 0.15) 62%,
    rgba(14, 36, 56, 0) 78%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 50px 30px 60px 90px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero .nav-list {
  margin-top: 3.2rem;
}

.hero .nav-list li {
  margin-bottom: 1.1rem;
}

.hero .nav-list a {
  color: #fff;
  font-size: 2.125rem;
}

.hero .nav-list a.is-active {
  color: var(--color-accent-hover);
}

.hero .nav-list .nav-two-line {
  display: inline-block;
  text-align: right;
}

.logo:hover {
  color: #fff;
}

.hero .nav-list a:hover {
  color: var(--color-accent-hover);
}

.page-header .nav-list a:hover {
  color: var(--color-accent-hover);
}

/* ---------- Startseiten-Text unterhalb des Heros ---------- */

.intro {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

@media (min-width: 721px) {
  .hero,
  .hero-inner {
    min-height: 90vh;
    min-height: 90dvh;
  }

  .intro {
    padding: 2.5rem 1.5rem;
  }
}

.intro p {
  font-size: 1.15rem;
  margin: 0 0 1.3rem;
}

.intro p:first-child {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-dark);
}

/* ---------- Kopfleiste für Innenseiten (kein Foto) ---------- */

.page-header {
  background: var(--color-dark);
  padding: 1.1rem 1.5rem;
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header .logo {
  font-size: 1.9rem;
}

.page-header .nav-list {
  display: flex;
  gap: 1.8rem;
}

.page-header .nav-list a {
  color: #fff;
  font-size: 1rem;
}

.page-header .nav-list a.is-active {
  color: var(--color-accent-hover);
}

/* Mobile: Hamburger-Menü ohne JavaScript, per Checkbox-Trick */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-family: var(--font-nav);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .page-header .nav-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-top: 1rem;
  }

  .nav-toggle:checked ~ .page-header-inner .nav-list,
  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }

  .page-header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: block;
  }

  .hero-inner {
    padding: 30px 24px 40px;
  }

  .hero .nav-list a {
    font-size: 1.15rem;
  }

  .hero .logo {
    font-size: 2.2rem;
    display: inline-block;
    background: rgba(74, 74, 74, 0.75);
    padding: 8px 14px;
    border-radius: 18px;
  }

  .hero::before {
    background: linear-gradient(
      160deg,
      rgba(14, 36, 56, 0.82) 0%,
      rgba(14, 36, 56, 0.68) 40%,
      rgba(14, 36, 56, 0.35) 65%,
      rgba(14, 36, 56, 0.15) 100%
    );
  }

  .hero picture,
  .hero img {
    object-position: 50% 50%;
  }

}

/* ---------- Seiteninhalt allgemein ---------- */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.page-title {
  font-size: 2.2rem;
  margin: 0 0 1.8rem;
}

.page-intro p {
  font-size: 1.1rem;
  max-width: var(--content-width);
  margin: 0 0 1.2rem;
}

/* ---------- Vollflächige Bildabschnitte ---------- */

.photo-section {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.photo-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-section .box {
  position: relative;
  z-index: 2;
  max-width: 360px;
  background: var(--color-bg);
  padding: 1.5rem 1.7rem;
  margin: 2.5rem 6vw;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.photo-section.align-right {
  justify-content: flex-end;
}

.photo-section .box p {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
}

.photo-section .box p:last-child {
  margin-bottom: 0;
}

.photo-section .box .button {
  margin-top: 0.8rem;
}

/* ---------- Portraitfoto oben auf der Seite (z. B. Schriftstellerin) ---------- */

.writer-portrait {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.writer-portrait img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
}

@media (min-width: 721px) {
  .writer-portrait {
    width: auto;
    position: static;
    left: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
    padding: 0 1.5rem;
    margin-top: 1rem;
  }

  .writer-portrait img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 720px) {
  .photo-section {
    min-height: 46vh;
  }

  .photo-section .box {
    margin: 1.5rem;
    max-width: none;
    padding: 1.6rem 1.6rem;
  }
}

/* ---------- Umschaltung PC/Tablet-Ansicht und Handy-Ansicht (Autobiografisches Schreiben) ---------- */

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.mob-photo-block {
  display: none;
}

@media (max-width: 720px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mob-photo-block {
    display: block;
    margin: 0 0 3rem;
  }

  .mob-photo-block img {
    width: 100%;
    display: block;
    max-height: 340px;
    object-fit: cover;
  }

  .mob-photo-block .content {
    padding: 1.6rem 1.5rem 0;
  }

  .mob-photo-block .content h2 {
    font-size: 1.375rem;
    border-bottom: 2px solid var(--color-accent-hover);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
  }

  .mob-photo-block .content h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin: 1.2rem 0;
  }

  .mob-photo-block .content p {
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
  }

  .mob-photo-block .content details summary {
    cursor: pointer;
    color: var(--color-accent-hover);
    font-family: var(--font-nav);
    font-weight: 700;
    font-size: 0.95rem;
    list-style: none;
    margin: 0 0 1.2rem;
  }

  .mob-photo-block .content details summary::-webkit-details-marker {
    display: none;
  }

  .mob-photo-block .content details summary::after {
    content: " ›";
  }

  .mob-photo-block .content details[open] summary {
    display: none;
  }

  .mob-photo-block .content .button {
    margin-top: 0;
  }
}

/* ---------- Textabschnitte (Autobiografisches Schreiben, Über mich) ---------- */

.text-block {
  max-width: var(--content-width);
  margin: 0 0 3.5rem;
}

.text-block h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.text-block p {
  font-size: 1.1rem;
  margin: 0 0 1.2rem;
}

.button {
  display: inline-block;
  font-family: var(--font-nav);
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  margin-top: 0.5rem;
}

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

/* ---------- Kontaktformular ---------- */

.form-hint {
  color: var(--color-text-soft);
  font-size: 1rem;
}

.contact-form {
  max-width: var(--content-width);
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-family: var(--font-nav);
  font-weight: 700;
  margin: 1.1rem 0 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #cfc7b3;
  border-radius: 3px;
  background: #fff;
  color: var(--color-text);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 1.6rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1000px;
}

.about-photo {
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  position: sticky;
  top: 1.5rem;
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 260px;
    position: static;
    margin: 0 auto 1.5rem;
    order: -1;
  }
}

@media (max-width: 560px) {
  .text-block p,
  .intro p,
  .page-intro p {
    font-size: 1.05rem;
    margin: 0 0 1.6rem;
  }

  .photo-section .box p {
    margin: 0 0 1.2rem;
  }

  main {
    padding: 2.5rem 1.3rem 4rem;
  }
}

/* ---------- Bücherliste ---------- */

.book-section {
  margin-top: 3.5rem;
}

.book-section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.book-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e4ddce;
}

.book-row:last-child {
  border-bottom: none;
}

.book-cover img {
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.book-info h3 {
  font-size: 1.3rem;
  margin: 0 0 0.7rem;
}

.book-info p {
  font-size: 1rem;
  color: var(--color-text-soft);
  margin: 0 0 1rem;
}

.book-links {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.95rem;
}

.book-links a {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 560px) {
  .book-row {
    grid-template-columns: 1fr;
  }

  .book-cover img {
    width: 130px;
  }
}

/* ---------- Footer ---------- */

footer {
  background: var(--color-dark);
  color: #cdd3d2;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: var(--font-nav);
  font-size: 0.9rem;
}

footer a {
  color: #cdd3d2;
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-top: 0.6rem;
}
