/*
Theme Name: KaffeeFino
Theme URI: https://kaffeefino.com
Author: KaffeeFino
Description: Individuelles Theme für KaffeeFino – internationale Spezialitäten für Cafés & Bäckereien. Mit WooCommerce-Unterstützung.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: kaffeefino
*/

/* ---------- Schriften (lokal eingebunden, kein Google-Server) ---------- */
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("assets/fonts/playfair.woff2") format("woff2");
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Playfair Display";
	src: url("assets/fonts/playfair-italic.woff2") format("woff2");
	font-weight: 400 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Marken-Tokens ---------- */
:root {
	--kf-espresso: #3B1E0F;
	--kf-espresso-dark: #2A1409;
	--kf-karamell: #C7892B;
	--kf-karamell-hell: #E2AD55;
	--kf-karamell-dunkel: #8A5A12;
	--kf-creme: #F6E9D8;
	--kf-vanille: #FFF8F0;
	--kf-olive: #6B8F3A;
	--kf-schiefer: #2E2E2E;
	--kf-linie: #E6D5BD;
	--kf-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--kf-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--kf-radius: 10px;
	--kf-breite: 1200px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--kf-vanille);
	color: var(--kf-schiefer);
	font-family: var(--kf-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--kf-karamell-dunkel); text-underline-offset: 3px; }
a:hover { color: var(--kf-espresso); }
h1, h2, h3, h4 {
	font-family: var(--kf-serif);
	color: var(--kf-espresso);
	line-height: 1.15;
	font-weight: 600;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--kf-karamell); outline-offset: 2px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.kf-skip:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--kf-vanille); color: var(--kf-espresso); padding: 12px 16px; border-radius: 6px;
}
.kf-container { width: 100%; max-width: var(--kf-breite); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---------- Buttons ---------- */
.kf-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link),
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 24px;
	background: var(--kf-karamell); color: var(--kf-espresso-dark);
	border: 1px solid var(--kf-karamell); border-radius: 8px;
	font-family: var(--kf-sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.kf-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-block-button__link:hover {
	background: var(--kf-karamell-hell); border-color: var(--kf-karamell-hell); color: var(--kf-espresso-dark);
}
.kf-btn--ghost { background: transparent; color: var(--kf-vanille); border-color: rgba(255, 248, 240, .55); }
.kf-btn--ghost:hover { background: rgba(255, 248, 240, .1); color: var(--kf-vanille); border-color: var(--kf-vanille); }
.kf-btn--dark { background: var(--kf-espresso); color: var(--kf-vanille); border-color: var(--kf-espresso); }
.kf-btn--dark:hover { background: var(--kf-espresso-dark); border-color: var(--kf-espresso-dark); color: var(--kf-vanille); }
.kf-btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Kopfbereich ---------- */
.kf-header { background: var(--kf-espresso-dark); color: var(--kf-creme); }
.kf-header__inner { display: flex; align-items: center; gap: 24px; min-height: 92px; padding-top: 12px; padding-bottom: 12px; }
.kf-logo { display: block; flex: none; }
.kf-logo img { width: 168px; height: auto; }
.kf-nav { margin-left: auto; }
.kf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.kf-nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
	color: var(--kf-creme); text-decoration: none; font-size: .95rem; font-weight: 500;
	border-bottom: 2px solid transparent;
}
.kf-nav a:hover, .kf-nav .current-menu-item > a, .kf-nav .current_page_item > a {
	color: var(--kf-karamell-hell); border-bottom-color: var(--kf-karamell);
}
.kf-actions { display: flex; align-items: center; gap: 8px; }
.kf-icon-link {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; color: var(--kf-creme); border-radius: 8px; text-decoration: none;
}
.kf-icon-link:hover { color: var(--kf-karamell-hell); background: rgba(255, 248, 240, .08); }
.kf-icon-link svg { width: 22px; height: 22px; }
.kf-cart-count {
	position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
	background: var(--kf-karamell); color: var(--kf-espresso-dark);
	border-radius: 10px; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
}
.kf-cart-count[data-count="0"] { display: none; }
.kf-header .kf-btn { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.kf-menu-toggle {
	display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 0; color: var(--kf-creme); cursor: pointer; border-radius: 8px;
}
.kf-menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
	.kf-header__inner { flex-wrap: wrap; min-height: 76px; }
	.kf-logo img { width: 138px; }
	.kf-menu-toggle { display: inline-flex; order: 3; }
	.kf-actions { margin-left: auto; order: 2; }
	.kf-actions .kf-btn { display: none; }
	.kf-nav { order: 4; flex-basis: 100%; margin: 0; display: none; padding-bottom: 12px; }
	.kf-nav.is-open { display: block; }
	.kf-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.kf-nav a { width: 100%; min-height: 48px; border-bottom: 1px solid rgba(255, 248, 240, .12); padding-left: 4px; }
}

/* ---------- Startseite: Hero ---------- */
.kf-hero { background: var(--kf-espresso); color: var(--kf-creme); }
.kf-hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(28px, 5vw, 72px); align-items: center;
	padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.kf-eyebrow {
	display: block; margin-bottom: 18px;
	font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	color: var(--kf-karamell-hell);
}
.kf-hero h1 { color: var(--kf-vanille); margin-bottom: 22px; }
.kf-hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--kf-karamell-hell); }
.kf-hero__text { max-width: 34em; font-size: 1.12rem; color: var(--kf-creme); margin-bottom: 32px; }
.kf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.kf-hero__bild img {
	width: 100%; aspect-ratio: 8 / 7; object-fit: cover;
	border-radius: 14px; border: 1px solid rgba(226, 173, 85, .35);
}
@media (max-width: 860px) {
	.kf-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.kf-hero__bild { order: -1; }
	.kf-hero__bild img { aspect-ratio: 16 / 10; }
}

/* ---------- Startseite: Vorteile ---------- */
.kf-usp { background: var(--kf-creme); border-bottom: 1px solid var(--kf-linie); }
.kf-usp ul {
	list-style: none; margin: 0; padding: 26px 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.kf-usp li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--kf-espresso); line-height: 1.3; }
.kf-usp svg { width: 36px; height: 36px; flex: none; color: var(--kf-karamell-dunkel); }
@media (max-width: 860px) { .kf-usp ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .kf-usp ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Abschnitte ---------- */
.kf-section { padding: clamp(56px, 8vw, 104px) 0; }
.kf-section--creme { background: var(--kf-creme); }
.kf-section__kopf { max-width: 44em; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.kf-section__kopf p { color: #55483d; margin: 0; }
.kf-label { display: block; margin-bottom: 8px; font-family: var(--kf-serif); font-style: italic; font-size: 1.15rem; color: var(--kf-karamell-dunkel); }

.kf-highlight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kf-highlight__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.kf-highlight h2 { font-style: italic; font-size: clamp(2rem, 4vw, 3rem); }
.kf-checks { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 10px; }
.kf-checks li { display: flex; gap: 12px; align-items: flex-start; }
.kf-checks svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--kf-olive); }
@media (max-width: 860px) { .kf-highlight { grid-template-columns: minmax(0, 1fr); } }

.kf-leer {
	max-width: 40em; margin: 0 auto; padding: 32px; text-align: center;
	background: var(--kf-vanille); border: 1px dashed var(--kf-karamell); border-radius: 12px; color: #55483d;
}

.kf-kunden { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kf-karte { padding: clamp(26px, 4vw, 44px); border-radius: 14px; background: #fff; border: 1px solid var(--kf-linie); display: flex; flex-direction: column; align-items: flex-start; }
.kf-karte p { flex: 1; color: #55483d; }
.kf-karte--dunkel { background: var(--kf-espresso); border-color: var(--kf-espresso); }
.kf-karte--dunkel h3 { color: var(--kf-vanille); }
.kf-karte--dunkel p { color: var(--kf-creme); }
.kf-karte h3 { font-size: 1.6rem; }
@media (max-width: 760px) { .kf-kunden { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inhaltsseiten ---------- */
.kf-main { min-height: 50vh; }
.kf-page { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.kf-page__titel { margin-bottom: clamp(20px, 3vw, 36px); padding-bottom: 18px; border-bottom: 1px solid var(--kf-linie); }
.kf-content > * { max-width: 100%; }
.kf-content--schmal { max-width: 800px; }
.kf-content h2 { margin-top: 1.6em; font-size: 1.6rem; }
.kf-content h3 { margin-top: 1.4em; }
.kf-content ul, .kf-content ol { padding-left: 1.3em; }
.kf-content table { width: 100%; border-collapse: collapse; }
.kf-content th, .kf-content td { padding: 10px 12px; border-bottom: 1px solid var(--kf-linie); text-align: left; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select {
	font-family: var(--kf-sans); font-size: 1rem; color: var(--kf-schiefer);
	min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #C9B79C; border-radius: 6px; max-width: 100%;
}

/* ---------- WooCommerce ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 0 0 32px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none; width: auto; margin: 0; padding: 0 0 20px;
	background: #fff; border: 1px solid var(--kf-linie); border-radius: 12px; overflow: hidden;
	display: flex; flex-direction: column; text-align: left;
}
.woocommerce ul.products li.product a img { margin: 0 0 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--kf-serif); font-size: 1.25rem; color: var(--kf-espresso); padding: 0 18px 6px;
}
.woocommerce ul.products li.product .price { color: var(--kf-espresso); font-weight: 600; font-size: 1.05rem; padding: 0 18px; }
.woocommerce ul.products li.product .wc-gzd-additional-info, .woocommerce ul.products li.product p { padding: 0 18px; font-size: .82rem; color: #6a5c50; margin: 2px 0; }
.woocommerce ul.products li.product .button { margin: 14px 18px 0; align-self: flex-start; }
.woocommerce ul.products li.product .onsale, .woocommerce span.onsale {
	background: var(--kf-olive); color: #fff; border-radius: 6px; min-height: 0; min-width: 0; line-height: 1.2; padding: 6px 10px; margin: 10px;
}
.woocommerce div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--kf-espresso); font-size: 1.5rem; font-weight: 600; }
.woocommerce div.product div.images img { border-radius: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--kf-creme); border-color: var(--kf-linie); border-radius: 8px 8px 0 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--kf-vanille); border-bottom-color: var(--kf-vanille); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--kf-espresso); font-weight: 600; }
.woocommerce .quantity .qty { min-height: 48px; width: 5em; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--kf-karamell); background: var(--kf-creme); color: var(--kf-schiefer); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--kf-karamell-dunkel); }
.woocommerce-error { background: #FBEDEA; }
.woocommerce .woocommerce-breadcrumb { color: #6a5c50; font-size: .88rem; margin-bottom: 20px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--kf-karamell-dunkel); }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--kf-espresso); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--kf-espresso); color: var(--kf-vanille); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--kf-linie); border-radius: 10px; overflow: hidden; background: #fff; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 13px 16px; text-decoration: none; color: var(--kf-espresso); border-bottom: 1px solid var(--kf-linie); font-weight: 500; }
.woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--kf-creme); color: var(--kf-karamell-dunkel); }
.wc-block-components-totals-item__value, .wc-block-components-product-price { color: var(--kf-espresso); }

/* ---------- Fußbereich ---------- */
.kf-cta { background: var(--kf-espresso); color: var(--kf-creme); text-align: center; padding: clamp(48px, 7vw, 84px) 0; }
.kf-cta h2 { color: var(--kf-vanille); }
.kf-cta p { max-width: 36em; margin: 0 auto 28px; }
.kf-footer { background: var(--kf-espresso-dark); color: var(--kf-creme); font-size: .95rem; }
.kf-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.kf-footer img { width: 190px; margin-bottom: 14px; }
.kf-footer h2 { font-family: var(--kf-sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--kf-karamell-hell); margin-bottom: 14px; }
.kf-footer ul { list-style: none; margin: 0; padding: 0; }
.kf-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--kf-creme); text-decoration: none; }
.kf-footer li a:hover { color: var(--kf-karamell-hell); text-decoration: underline; }
.kf-footer__claim { max-width: 24em; color: #D9C7AF; }
.kf-footer__unten { border-top: 1px solid rgba(255, 248, 240, .14); padding: 18px 0 26px; color: #C9B59A; font-size: .85rem; }
@media (max-width: 760px) { .kf-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
