/*
Theme Name: Gedanken
Description: WordPress-Theme für gedankentiefe.de mit bearbeitbarer Gutenberg-Startseite.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: gedankentiefe
*/
@font-face {
    font-family: Archivo;
    src: url("assets/archivo.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --gt-ink: #1b1c3a;
    --gt-cream: #f8f3ec;
    --gt-soft: #fbfaf6;
    --gt-blue: #e4ebf5;
    --gt-gold: #e9a622;
    --gt-line: #e6e2da;
}
body {
    margin: 0;
    color: var(--gt-ink);
    background: #fff;
    font: 17px/1.6 Archivo, Arial, sans-serif;
}
.editor-styles-wrapper { font-family: Archivo, Arial, sans-serif; color: var(--gt-ink); }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--gt-ink); outline-offset: 4px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.13; margin: 0 0 .55em; }
h1 { font-size: clamp(2.35rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
h3 { font-size: clamp(1.17rem, 2vw, 1.44rem); }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }
.gt-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.header-inner { min-height: 78px; padding-block: 8px; box-sizing: border-box; }
.brand { font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-header nav ul, .site-footer nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { font-weight: 600; font-size: .95rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gt-gold); text-underline-offset: .45em; }
.nav-cta, .gt-section .wp-block-button__link { display: inline-block; color: var(--gt-ink); background: var(--gt-gold); border: 1px solid var(--gt-gold); border-radius: 999px; padding: .55rem 1.15rem; font: 650 .96rem/1.45 Archivo, Arial, sans-serif; }
.gt-section .is-style-outline .wp-block-button__link { border-color: var(--gt-ink); background: transparent; }
.gt-section .wp-block-buttons { gap: .7rem; margin-top: 1.45rem; }
.gt-section { padding-block: clamp(3.6rem, 7vw, 6.6rem); }
.gt-cream { background: var(--gt-cream); }
.gt-white { background: white; }
.gt-blue { background: var(--gt-blue); }
.gt-divider { position: relative; }
.gt-divider::before { content: ""; position: absolute; top: 0; inset-inline: max(24px, calc((100% - 1160px)/2)); border-top: 1px solid var(--gt-line); }
.gt-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.gt-copy { max-width: 550px; }
.gt-photo { margin: 0; }
.gt-photo img { display: block; border-radius: 14px; }
.gt-hero { max-width: 390px; justify-self: center; }
.gt-portrait { max-width: 220px; justify-self: center; }
.gt-stagger { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 470px; }
.gt-image-note { position: relative; }
.gt-image-note:nth-child(2) { margin-top: 3rem; }
.gt-image-note > p { position: absolute; top: .6rem; left: .6rem; background: var(--gt-soft); border-radius: 50px; padding: .15rem .55rem; font-size: .75rem; font-weight: 600; }
.gt-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.gt-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gt-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gt-card { background: var(--gt-soft); border: 1px solid var(--gt-line); border-radius: 12px; padding: clamp(.9rem, 2vw, 1.35rem); display: flex; flex-direction: column; overflow-wrap: anywhere; }
.gt-card p:last-child { margin-bottom: 0; }
.gt-four .gt-card p:has(a) { padding-top: .75rem; margin-top: auto; }
.gt-topics { margin-top: 1.5rem; position: relative; }
.gt-topics details { margin: 0 0 .35rem; }
.gt-topics summary, .gt-faq summary { cursor: pointer; font-weight: 600; }
.gt-topics summary { list-style: none; padding: .65rem 1rem; border-radius: 8px; background: var(--gt-soft); }
.gt-topics summary::-webkit-details-marker, .gt-faq summary::-webkit-details-marker { display: none; }
.gt-topics summary::after { content: "→"; float: right; margin-left: .5rem; }
.gt-topics details[open] > summary { border-left: 4px solid var(--gt-gold); padding-left: calc(1rem - 4px); }
.gt-topic-panel { background: var(--gt-blue); border-radius: 12px; padding: clamp(1rem, 3vw, 1.85rem); margin-top: .5rem; }
.gt-exercise { background: white; border-radius: 9px; padding: .8rem 1rem; margin-block: .9rem; }
.gt-exercise p, .gt-topic-panel > p:last-child { margin: 0; }
.gt-faq { margin-top: 1rem; }
.gt-faq details { border-bottom: 1px solid var(--gt-line); }
.gt-faq summary { list-style: none; padding-block: .85rem; }
.gt-faq summary::after { content: "+"; float: right; color: #976400; font-size: 1.2em; }
.gt-faq details[open] > summary::after { content: "−"; }
.gt-faq details p { max-width: 62ch; }
.site-footer { background: var(--gt-ink); color: white; }
.footer-inner { padding-block: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: white; }
.content { padding-block: 4rem; min-height: 42vh; }
.entry { padding-block: 1rem; max-width: 75ch; }
.skip-link { position: absolute; top: -100vh; }
.skip-link:focus { position: fixed; z-index: 1; top: 8px; left: 8px; padding: 8px; background: white; }

@media (min-width: 820px) {
    .gt-topics.gt-enhanced { min-height: var(--gt-panel-height, 0); }
    .gt-enhanced details { width: 40%; }
    .gt-enhanced .gt-topic-panel { position: absolute; inset: 0 0 auto 44%; margin-top: 0; }
}
@media (max-width: 819px) {
    .header-inner, .footer-inner { flex-wrap: wrap; padding-block: 1rem; }
    .gt-split { grid-template-columns: 1fr; gap: 1.75rem; }
    .gt-three, .gt-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .gt-wrap { width: calc(100% - 32px); }
    .gt-three, .gt-four { grid-template-columns: 1fr; }
    .site-header nav ul { gap: .6rem 1rem; }
}

/* Keep the theme's grids when WordPress adds block layout styles. */
.site-main .gt-section .wp-block-group.gt-split,
.site-main .gt-section .wp-block-group.gt-stagger,
.site-main .gt-section .wp-block-group.gt-grid {
    display: grid !important;
}
.site-main .gt-section .wp-block-group.gt-card {
    display: flex !important;
}
.site-main .gt-section .gt-split > *,
.site-main .gt-section .gt-grid > * {
    min-width: 0;
    margin-block: 0;
}
@media (min-width: 820px) {
    .site-main .gt-section .wp-block-group.gt-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .site-main .gt-section .gt-split > .gt-photo {
        justify-self: center;
    }
}

/* Classic WordPress themes can wrap group contents in an extra container. */
.site-main .gt-section :is(.gt-split, .gt-stagger, .gt-grid, .gt-card, .gt-image-note) > .wp-block-group__inner-container {
    display: contents;
}
.site-main .gt-split > .wp-block-group__inner-container > * {
    min-width: 0;
    margin-block: 0;
}
.site-main .gt-image-note > .wp-block-group__inner-container > p {
    position: absolute;
    top: .6rem;
    left: .6rem;
    background: var(--gt-soft);
    border-radius: 50px;
    padding: .15rem .55rem;
    font-size: .75rem;
    font-weight: 600;
}
@media (min-width: 820px) {
    .site-main .gt-split > .wp-block-group__inner-container > .gt-photo {
        justify-self: center;
    }
}
