/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://sif12.dk/
Description: Child theme til Twenty Twenty-Five
Author: Torben
Template: twentytwentyfive
Version: 1.0.0
Text Domain: twentytwentyfive-child
*/

/* =========================================================
   Forside: grundfarver
   ========================================================= */

body.home,
body.front-page {
    background-color: #f4efe6;
}

body.home header,
body.front-page header,
body.home main,
body.front-page main {
    background-color: #f4efe6;
}

body.home footer,
body.front-page footer {
    background-color: #e5dccd;
}

/* =========================================================
   Reflektioner: grundfarver
   ========================================================= */

body.blog {
    background-color: #f4efe6;
}

body.blog header,
body.blog main {
    background-color: #f4efe6;
}

body.blog footer {
    background-color: #e5dccd;
}

/* =========================================================
   Enkeltindlæg: grundfarver
   ========================================================= */

body.single-post,
body.single-post .wp-site-blocks {
    background-color: #f4efe6;
}

body.single-post header,
body.single-post main {
    background-color: #f4efe6;
}

body.single-post footer {
    background-color: #e5dccd;
}

/* =========================================================
   Almindelige sider: grundfarver
   ========================================================= */

body.page,
body.page .wp-site-blocks {
    background-color: #f4efe6;
}

body.page header,
body.page main {
    background-color: #f4efe6;
}

body.page footer {
    background-color: #e5dccd;
}


/* =========================================================
   Header
   ========================================================= */

/* Header: lille grøn cirkel foran navn */
header .wp-block-site-title a::before {
    content: "";
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border-radius: 50%;
    background-color: #b7d764;
    margin-right: 0.45em;
    vertical-align: -0.05em;
}

/* Header-menu: lodrette streger mellem menupunkter */
.topmenu-streger .wp-block-navigation-item + .wp-block-navigation-item {
    border-left: 1px solid #999;
    padding-left: 14px;
    margin-left: 14px;
}


/* =========================================================
   Forside: hovedindhold
   ========================================================= */

/* Afstand fra header til billede og tekst */
body.home .forside-indhold,
body.front-page .forside-indhold {
    padding-top: 80px !important;
}

/* Forside: tekstområde */
.forside-tekst {
    max-width: 640px;
    margin-left: 0;
    margin-right: auto;
    transform: translateX(-80px);
}


/* =========================================================
   Forside: typografi
   ========================================================= */

/* H1 / navn */
.forside-tekst h1 {
    font-family: Cambria, Georgia, serif;
    font-size: 60px;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 16px 0;
}

/* H2 / underoverskrift */
.forside-tekst h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 28px 0;
}

/* Brødtekst */
.forside-tekst p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 100px 0;
}


/* =========================================================
   Forside: cirkelknapper
   ========================================================= */

/* Fælles styling for cirkelknapper */
.forside-cirkler .wp-block-button__link {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;

    color: #111111;
    border: none;
    box-shadow: none;
}

/* Øverste række: Refleksioner */
.forside-cirkler:first-of-type .wp-block-button:nth-child(1) .wp-block-button__link {
    background-color: #b7d764;
}

/* Øverste række: Slægt */
.forside-cirkler:first-of-type .wp-block-button:nth-child(2) .wp-block-button__link {
    background-color: #e4c15a;
}

/* Øverste række: Nordisk Tro */
.forside-cirkler:first-of-type .wp-block-button:nth-child(3) .wp-block-button__link {
    background-color: #8fd3e8;
}

/* Nederste række: Livsstil */
.forside-cirkler:last-of-type .wp-block-button:nth-child(1) .wp-block-button__link {
    background-color: #d8b4c8;
}

/* Nederste række: Mit Univers */
.forside-cirkler:last-of-type .wp-block-button:nth-child(2) .wp-block-button__link {
    background-color: #cfcfcf;
}


/* =========================================================
   Footer
   ========================================================= */

/* Footer: lavere højde */
.footer-indhold {
    background-color: #e5dccd !important;

    min-height: 0 !important;
    height: auto !important;

    padding-top: 18px !important;
    padding-bottom: 18px !important;

    margin-top: 0 !important;
    margin-bottom: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer: fjern ekstra afstand på teksten */
.footer-indhold p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Forside: luft mellem nederste cirkler og footer */
.forside-cirkler:last-of-type {
    margin-bottom: 50px;
}

/* =========================================================
   Reflektioner: blogside
   ========================================================= */

.reflektioner-side {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 90px;
    padding-bottom: 90px;
}

.reflektioner-side h1 {
    font-family: Cambria, Georgia, serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 18px 0;
}

.reflektioner-side > p {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.45;
    margin: 0 0 70px 0;
}

/* Blogindlæg i oversigten */
.reflektioner-side .wp-block-post {
    margin-bottom: 56px;
}

/* Indlægstitel */
.reflektioner-side .wp-block-post-title {
    font-family: Cambria, Georgia, serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 14px;
}

/* Link i indlægstitel */
.reflektioner-side .wp-block-post-title a {
    color: #111111;
    text-decoration: none;
}

.reflektioner-side .wp-block-post-title a:hover {
    text-decoration: underline;
}

/* Uddrag / indhold i oversigten */
.reflektioner-side .wp-block-post-excerpt,
.reflektioner-side .wp-block-post-content {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.55;
}

/* Dato */
.reflektioner-side .wp-block-post-date {
    font-size: 14px;
    color: #555555;
    margin-top: 12px;
}

/* Reflektioner: hvert indlæg som kort */
.reflektion-indlaeg {
    background-color: #fbf7ef;
    padding: 32px 36px;
    border-radius: 22px;
    margin-bottom: 42px;
}

/* =========================================================
   Slægt: oversigtsmenu
   ========================================================= */

.slaegt-menu {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 48px;
    margin-bottom: 80px;
}

/* Gør de indre Knapper-rækker usynlige for layoutet,
   så alle 9 knapper kan ligge i samme grid */
.slaegt-menu > .wp-block-buttons {
    display: contents !important;
}

.slaegt-menu .wp-block-button {
    width: 100%;
}

.slaegt-menu .wp-block-button__link {
    width: 100%;
    min-height: 105px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-color: #fbf7ef;
    color: #111111;

    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;

    padding: 22px;
    box-shadow: none;
    text-decoration: none;
}

.slaegt-menu .wp-block-button__link:hover {
    background-color: #f8f2e8;
    text-decoration: none;
}

@media (max-width: 800px) {
    .slaegt-menu {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Sims 4: cheat-tabel
   ========================================================== */

.cheat-tabel table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.cheat-tabel th,
.cheat-tabel td {
    border: none !important;
    padding: 14px 18px;
    text-align: left;
    vertical-align: middle;
}

.cheat-tabel thead th {
    background-color: #35a84a;
    color: #ffffff;
    font-weight: 700;
}

.cheat-tabel tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.cheat-tabel tbody tr:nth-child(even) {
    background-color: #f1faed;
}

.cheat-tabel th:first-child,
.cheat-tabel td:first-child {
    width: 38%;
}

/* Sims 4 snydekoder - tabeltekst */
.sims-koder-tabel,
.sims-koder-tabel table,
.sims-koder-tabel td,
.sims-koder-tabel th {
    font-size: 16px !important;
    line-height: 1.35;
}

/* Sims 4 snydekoder - celler */
.sims-koder-tabel td,
.sims-koder-tabel th {
    padding: 0.4em 0.6em !important;
}

/* Sims 4 snydekoder - ens rækkehøjde */
.sims-koder-tabel tr {
    height: 42px;
}

.sims-koder-tabel td,
.sims-koder-tabel th {
    height: 36px;
    vertical-align: middle;
}
