/* Breidenbach Romane – Gestaltung
   Farben und Schrift wie auf der bisherigen WordPress-Seite. */

/* ---------- Schrift (liegt auf dem eigenen Server, nicht bei Google) ---------- */
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif Pro"; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif Pro"; font-style: italic; font-weight: 400; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif Pro"; font-style: italic; font-weight: 400; font-display: swap;
    src: url(../fonts/source-serif-pro-latin-ext-400-italic.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Farben ---------- */
:root {
    --blau: #083d77;
    --rot: #b9314f;
    --rosa: #ffd4d4;       /* Text auf Rot, Hintergrund der Cover-Leiste */
    --rosa-hell: #ffbaba;  /* aktiver Menüpunkt */
    --weiss: #ffffff;
    --breite: 1080px;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--rot);
    color: var(--rosa);
    font: 400 18px/1.7 "Source Serif Pro", Georgia, "Times New Roman", serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--weiss); }
a:hover { color: var(--rosa-hell); }
h1, h2, h3 { font-weight: 400; line-height: 1.25; color: var(--weiss); margin: 0 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.4rem; margin-top: 1.4em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.innen { width: 80%; max-width: var(--breite); margin: 0 auto; }

/* ---------- Kopf mit Logo und Menü ---------- */
.kopf { background: var(--blau); position: sticky; top: 0; z-index: 10; }
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.logo img { width: 220px; }

.navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.navigation a { color: var(--rot); font-size: 24px; font-weight: 600; text-decoration: none; }
.navigation a:hover { color: var(--rosa); }
.navigation a[aria-current="page"] { color: var(--rosa-hell); }
.menue-knopf { display: none; }

/* ---------- Inhalt ---------- */
.inhalt { padding: 60px 0 70px; }

.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.zwei-spalten .bilder { display: grid; gap: 30px; justify-items: center; }
.zwei-spalten .bilder .schmal { width: 62%; }

.start { align-items: center; }
.motto { font-size: 60px; line-height: 1.2; text-align: center; margin: 0; }

.lesetext { max-width: 800px; }

.linkliste dt { font-weight: 600; margin-top: 1.2em; }
.linkliste dd { margin: 0; }
/* Symbol „externer Link“ (Kästchen mit Pfeil) hinter Links, die auf andere Webseiten führen;
   die Maske übernimmt automatisch die Textfarbe */
.linkliste a[target="_blank"]::after,
.lesetext a[target="_blank"]::after,
.knopf[target="_blank"]::after {
    content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .35em; vertical-align: -.05em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3Cpath d='M15 3h6v6M21 3l-9 9'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5'/%3E%3Cpath d='M15 3h6v6M21 3l-9 9'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Bücher-Übersicht */
.buecher-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 30px; }
.buecher-raster a { display: block; text-decoration: none; color: var(--rosa); line-height: 1.35; }
.buecher-raster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 5px 5px 4px rgba(0, 0, 0, .45); margin-bottom: 12px; transition: transform .2s; }
.buecher-raster a:hover img { transform: translateY(-4px); }
.buecher-raster a:hover { color: var(--weiss); }

/* Buchseite */
.buch { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 50px; align-items: start; }
.buch-cover { width: 100%; box-shadow: 6px 6px 6px rgba(0, 0, 0, .45); }
.buch-auszeichnung { max-width: 420px; margin-bottom: 24px; }
.buch h1 { margin-bottom: .2em; }
.buch-untertitel { font-size: 1.25rem; font-style: italic; color: var(--weiss); }
.buch-angaben { font-size: .95rem; opacity: .9; }
.buch-text img { margin: 1.5em 0; }
.buch-isbn { font-size: .95rem; }
.knopf {
    display: inline-block; background: var(--blau); color: var(--weiss); text-decoration: none;
    padding: 10px 24px; border-radius: 4px; font-weight: 600;
}
.knopf:hover { background: var(--weiss); color: var(--blau); }

/* ---------- Cover-Leiste zum Blättern ---------- */
.leiste { background: var(--blau); padding: 50px 0; }
.leiste-rahmen { position: relative; background: var(--rosa); padding: 24px 56px; }
.leiste-liste {
    list-style: none; margin: 0; padding: 4px 0 10px; display: flex; gap: 28px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.leiste-liste::-webkit-scrollbar { display: none; }
.leiste-liste li { flex: 0 0 auto; scroll-snap-align: start; }
.leiste-liste img { height: 170px; width: auto; max-width: none; box-shadow: 5px 5px 4px rgba(0, 0, 0, .45); transition: transform .2s; }
.leiste-liste a:hover img { transform: translateY(-4px); }
.leiste-pfeil {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--weiss); color: #333; font: 600 28px/1 Georgia, serif; padding: 0 0 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.leiste-pfeil.zurueck { left: 8px; }
.leiste-pfeil.weiter { right: 8px; }
.leiste-pfeil:disabled { opacity: .3; cursor: default; }

/* ---------- Fuß ---------- */
.fuss { background: var(--blau); text-align: center; }
.fuss-links { list-style: none; margin: 0; padding: 30px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fuss-links a { text-decoration: none; }
.copyright { margin: 0; padding: 14px; background: rgba(0, 0, 0, .32); font-size: 14px; }

/* ---------- Tablet & Handy ---------- */
@media (max-width: 1100px) {
    .innen { width: 90%; }
    .navigation a { font-size: 21px; }
    .navigation ul { gap: 4px 16px; }
    .motto { font-size: 44px; }
}
/* Menü wird zum Knopf, sobald es nicht mehr in eine Zeile passt */
@media (max-width: 900px) {
    .kopf .innen { min-height: 64px; }
    .logo img { width: 170px; }
    /* quadratischer Knopf mit drei Strichen */
    .menue-knopf {
        display: block; width: 44px; height: 44px; padding: 0; background: none; color: var(--rosa);
        border: 2px solid var(--rosa); border-radius: 6px; cursor: pointer;
    }
    .menue-knopf svg { display: block; margin: 0 auto; }
    .navigation ul {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        background: var(--blau); flex-direction: column; padding: 10px 5% 20px; box-shadow: 0 6px 10px rgba(0, 0, 0, .25);
    }
    .navigation.offen ul { display: flex; }
}
@media (max-width: 760px) {
    .zwei-spalten, .buch { grid-template-columns: 1fr; gap: 30px; }
    .buch-cover { max-width: 260px; }
    .motto { font-size: 40px; }
    .inhalt { padding: 36px 0 50px; }
    h1 { font-size: 1.8rem; }
    .buecher-raster { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 30px 20px; }
    .leiste-rahmen { padding: 18px 48px; }
    .leiste-liste img { height: 140px; }
    .fuss-links { grid-template-columns: 1fr; }
}
