/* ==========================
   Allgemeine Komponenten
========================== */

/* ==========================
   Buttons
========================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 42px;
    padding: 0.9rem 1.6rem;

    border: 2px solid transparent;
    border-radius: var(--radius);

    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button--primary {
    background:#d7a12c;
    color: var(--color-white);
}

.button--primary:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-1px);
}

.button--primary:focus-visible {
    background: #d7a12c;
    color: var(--color-white);
}

/* Sekundärbutton */

.button--secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.button--secondary:hover,
.button--secondary:focus-visible {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* Tastaturfokus */

.button:focus-visible {
    outline: 3px solid rgba(201, 140, 23, 0.35);
    outline-offset: 4px;
}

/* ==========================
   Abschnittsüberschrift
========================== */

.section-heading {
    max-width: 760px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.section-heading__title {
    margin-bottom: 0.35rem;
}

.section-heading__description {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 1.15rem;
	line-height: 1.6;
}

/* ==========================
   Karten
========================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card {
    display: flex;
    min-height: 240px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(23, 63, 122, 0.08);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.card:hover {
    border-color: rgba(201, 140, 23, 0.45);
    box-shadow: 0 12px 30px rgba(23, 63, 122, 0.12);
    transform: translateY(-3px);
}

.card__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2.25rem;
}

.card__title {
    margin-bottom: 1rem;

    font-size: clamp(1.6rem, 2.2vw, 1.9rem);
    line-height: 1.2;
}

.card__text {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

.card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;

    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.card__link:hover,
.card__link:focus-visible {
    gap: 0.65rem;
    color: var(--color-secondary);
}

/* ==========================
   Formulare
========================== */

.form-message {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;

    border: 1px solid var(--color-border);
    border-radius: var(--radius);

    line-height: 1.5;
}

.form-message--success {
    background: #f3f8f3;
    border-color: #b9d5bd;
    color: #315c38;
}

.form-message--error {
    background: #fdf4f4;
    border-color: #dfbcbc;
    color: #7a3030;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;

    color: var(--color-text-light);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1rem;

    border: 1px solid #d9dee7;
    border-radius: 8px;

    background: var(--color-white);
    color: var(--color-text);

    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.form-control::placeholder {
    color: #9aa7b8;
	opacity: .75;
}

.form-control:hover {
    border-color: #b9c5d6;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(23, 63, 122, .10);
    outline: none;
}

.form-control--textarea {
    min-height: 160px;
    resize: vertical;
}

.form-preview {
    max-width: 720px;
    margin: 0 auto;
}

.contact-preview {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
    background: var(--color-white);
}

.contact-preview .section-heading {
    margin-bottom: 2rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check__input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-secondary);
}

.form-preview .button {
    min-width: 180px;
}

.form-check__label {
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ==========================
   Header
========================== */

.site-header {

    background: var(--color-white);

}

.site-header__branding {

    text-align: center;

    padding: 0.6rem 0 0.1rem;

}

.site-header__branding img {

    width: 420px;

    max-width: 100%;

    height: auto;

    margin: auto;

}

.site-header__navigation {
    padding: 1rem 0;

    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);

    font-family: var(--font-secondary);

}

.primary-menu {

    display: flex;

    justify-content: center;

    gap: 2.5rem;

    list-style: none;

    margin: 0;

    padding: 0;

}

.primary-menu li {
    position: relative;
}

.primary-menu li:not(:last-child)::after {
    content: "|";
    color: #c98c17;
    opacity: 0.45;
    margin-left: 1.9rem;
	font-size: 1em;
}

.primary-menu a {
    color: var(--color-text);

    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;

    transition:
        color 0.25s ease,
        border-color 0.25s ease;

}

.primary-menu a:hover,
.primary-menu a:focus-visible {
    color: var(--color-secondary);

}

/* ==========================
   Mobile Menü-Button
========================== */

.menu-toggle {
    display: none;
}

/* ==========================
   Hero
========================== */

.hero {
    padding-top: 4rem;
    padding-bottom: 4rem;
    text-align: center;
}

.hero__inner {
    width: 100%;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    margin-bottom: 0.7rem;
}

.hero__description {
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.4rem;
	line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: var(--space-md);
}

/* ==========================
   Themenbereiche
========================== */

.areas {
    background: #f8f9fb;
    padding: 2.2rem 0 2rem;
}


/* ==========================
   Home About
========================== */

.home-about {
    padding-block: 3rem;
}

.home-about__inner {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.home-about__text {
    margin: 0 auto var(--space-md);
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ==========================
Buchübersicht
========================== */

.book-index {
    max-width: 820px;
    margin-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.book-index p {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.book-index a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;

    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;

    transition: color 0.2s ease;
}

.book-index a::after {
    content: "Lesen →";
    font-size: 0.9rem;
    font-weight: 500;
}

.book-index a:hover,
.book-index a:focus-visible {
    color: var(--color-secondary);
}

.book-content p {
    line-height: 1.75;
}

/* ==========================
Buchseiten
========================== */

.book-entry {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 2.5rem;
}

.book-entry__title {
    margin-bottom: 2rem;
}

.book-entry__content {
	font-size: 1.05rem;
    line-height: 1.75;
}

.book-entry__content p {
    margin-bottom: 1.5rem;
}

.book-entry__chapter {
    margin: 0 0 1.5rem;
    color: var(--color-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.book-index a::after {
    content: "Lesen →";
    white-space: nowrap;
}

.book-entry__navigation {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    margin-top: 3rem;
    margin-bottom: 2rem;

    padding-top: 1.5rem;
    padding-bottom: 1rem;

    border-top: 1px solid var(--color-border);
}

.book-entry__navigation a {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    text-decoration-color: var(--color-secondary);
    text-underline-offset: 0.25em;
    text-decoration-thickness: 2px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.book-entry__navigation a:hover,
.book-entry__navigation a:focus-visible {
    color: var(--color-secondary);
    text-decoration: underline;
    text-decoration-color: var(--color-secondary);
}

.book-feedback {
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;

    border-top: 1px solid var(--color-border);
}

.book-feedback__title {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.book-feedback__text {
    margin-bottom: 1.5rem;
}

.book-publication {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.book-publication p {
    margin: 0 0 0.4rem;
}

.book-publication p:last-child {
    margin-bottom: 0;
}

/* =========================
   Fluent Forms
   ========================= */

.fluentform .ff-btn-submit {
    background: #d7a12c !important;
    border-color: #d7a12c !important;
    color: var(--color-white) !important;

    border-radius: var(--radius);
    padding: 0.9rem 1.6rem;

    font-family: var(--font-secondary);
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus-visible {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.fluentform .ff-message-success {
    padding: 1rem 1.25rem;

    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);

    color: var(--color-text);
}

/* ==========================
   Standardseiten
========================== */

.page-content {
    padding-block: 4rem;
}

.page-entry {
    max-width: 820px;
    margin-inline: auto;
}

.page-entry__header {
    margin-bottom: 2rem;
}

.page-entry__title {
    margin-bottom: 0;
}

.page-entry__content {
    color: var(--color-text-light);
}

.page-entry__content > *:last-child {
    margin-bottom: 0;
}

/* =========================================================
   ClarusaDialog Discover Modal
   ========================================================= */

.discover-modal[hidden] {
	display: none;
}

.discover-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;
}

.discover-modal__backdrop {
	position: absolute;
	inset: 0;

	background: rgba(10, 27, 52, 0.58);
}

.discover-modal__dialog {
	position: relative;
	z-index: 1;

	width: min(520px, 100%);
	padding: 56px 64px 68px;

	background: #fff;
	border-radius: 8px;

	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.discover-modal__dialog h2 {
	margin: 0 40px 28px 0;

	color: #0b3f82;
	font-size: 2rem;
	line-height: 1.2;
}

.discover-modal__close {
	position: absolute;
	top: 14px;
	right: 18px;

	padding: 4px 8px;

	border: 0;
	background: transparent;

	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.discover-modal__links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.discover-modal__links a {
	display: block;

	padding: 15px 18px;

	border: 1px solid #d9a321;
	border-radius: 5px;

	color: #0b3f82;
	background: #fff;

	font-weight: 600;
	text-decoration: none;
}

.discover-modal__links a:hover,
.discover-modal__links a:focus-visible {
	background: #f7f3e8;
}

body.discover-modal-open {
	overflow: hidden;
}

/* ==========================
   Footer
========================== */

.site-footer {
    margin-top: auto;
    padding-block: var(--space-md);
    background: var(--color-primary);
    color: var(--color-white);
}

.site-footer__inner {
    display: grid;
    gap: var(--space-sm);
    text-align: center;
}

.site-footer__name {
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 600;
}

.site-footer__motto {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

.site-footer__links a {
    color: var(--color-white);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--color-secondary);
}

.site-footer__copyright {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}