/*
Theme Name: Elaichi
Theme URI: https://www.digtatur.com
Author: digtatur.com
Author URI: https://www.digtatur.com
Description: Premium-WordPress-Theme für Elaichi – Fine Indian Dining, Wien. Mit Einführungs-Animation, Parallax, Seitenübergängen, Speisekarte mit Kategorie-Tabs (Speisen/Getränke), Reservierung, Kontaktformular mit Dashboard-Archiv und lokalen Schriften (DSGVO-freundlich).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elaichi
*/

/* ==========================================================================
   1. Schriften (lokal, keine Verbindung zu Google)
   ========================================================================== */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }

/* ==========================================================================
   2. Design-Tokens
   ========================================================================== */
:root {
	--g950: #0c1809;
	--g900: #12240d;
	--g800: #1a3213;
	--g700: #234119;
	--g600: #2f5522;
	--g500: #3d6b2d;
	--gold: #c9a335;
	--gold-l: #e6cb78;
	--gold-d: #8a6c16;
	--gold-grad: linear-gradient(120deg, #f0dc95 0%, #c9a335 42%, #a8851f 100%);
	--cream: #f8f2e2;
	--cream-2: #efe6cd;
	--paper: #fcf9f0;
	--ink: #1b2615;
	--muted: #646d58;
	--line: rgba(138, 108, 22, .28);
	--serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--hdr: 80px;
	--maxw: 1240px;
	--pad: clamp(20px, 4vw, 48px);
}

/* ==========================================================================
   3. Basis
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 10px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--g900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.screen-reader-text, .skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10000; background: #fff; color: var(--g900); padding: 10px 16px; border-radius: 4px; }
.center { text-align: center; }
.admin-hint { display: inline-block; font: 500 .72rem var(--sans); letter-spacing: .06em; color: #fff; background: rgba(176, 40, 40, .85); padding: 4px 10px; border-radius: 3px; }
.admin-hint--block { display: block; background: transparent; color: #8a2c2c; border: 1px dashed #b84a4a; padding: 12px 16px; border-radius: 4px; font-size: .85rem; letter-spacing: 0; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ==========================================================================
   4. Typografie-Bausteine
   ========================================================================== */
.eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font: 500 .78rem var(--sans); letter-spacing: .34em; text-transform: uppercase;
	color: var(--gold-d); margin-bottom: 1.1em;
}
.eyebrow--light { color: var(--gold); }
.title { font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -.01em; }
.title em, .hero-title .line--accent > span { font-style: italic; font-weight: 400; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; }
.title--light { color: var(--paper); }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 6vw, 72px); }
.prose p { margin-bottom: 1.3em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--g600); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.fine { text-align: center; font-size: .82rem; letter-spacing: .06em; opacity: .7; margin-top: 18px; }

/* Zierlinie */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 22px auto 0; max-width: 220px; }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor); transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.orn i:last-child { background: linear-gradient(270deg, transparent, currentColor); }
.orn svg { flex: none; transform: scale(0) rotate(-90deg); transition: transform .9s var(--ease) .1s; }
.orn.is-in i { transform: scaleX(1); }
.orn.is-in svg { transform: none; }
.orn--left { margin-left: 0; justify-content: flex-start; max-width: 180px; }
.orn--left i:first-child { display: none; }
.orn--light { color: var(--gold); }
html:not(.js) .orn i { transform: none; } html:not(.js) .orn svg { transform: none; }

/* ==========================================================================
   5. Buttons & Links
   ========================================================================== */
.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 16px 34px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; overflow: hidden;
	font: 500 .82rem var(--sans); letter-spacing: .2em; text-transform: uppercase; line-height: 1;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s, color .4s, border-color .4s;
	will-change: transform;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn .ico { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .ico { transform: translateX(5px); }
.btn > * { position: relative; z-index: 1; }
.btn--gold { background: var(--gold-grad); color: var(--g900); box-shadow: 0 10px 30px -10px rgba(201, 163, 53, .6); }
.btn--gold:hover { box-shadow: 0 16px 40px -10px rgba(201, 163, 53, .85); }
.btn--line { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--line:hover { background: var(--gold); color: var(--g900); }
.btn--green { background: var(--g600); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(47, 85, 34, .7); }
.btn--green:hover { background: var(--g700); }
.btn--sm { padding: 12px 24px; font-size: .74rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font: 500 .8rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--g600); padding-bottom: 6px; border-bottom: 1px solid var(--gold); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link-arrow:hover .ico { transform: translateX(6px); }
.link-arrow--sm { font-size: .72rem; margin-top: 6px; }

/* ==========================================================================
   6. Header & Navigation
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: var(--hdr); transition: transform .6s var(--ease), background .5s, box-shadow .5s, height .5s var(--ease); color: var(--paper); }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 24, 9, .65), transparent); opacity: 1; transition: opacity .5s; pointer-events: none; }
.hdr-inner { position: relative; max-width: 1500px; margin: 0 auto; height: 100%; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-header.is-solid { background: rgba(18, 36, 13, .9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 rgba(201, 163, 53, .28), 0 12px 30px -18px rgba(0, 0, 0, .7); --hdr: 68px; height: 68px; }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-mark { width: 44px; height: auto; transition: transform .8s var(--ease); }
.brand-word { width: 132px; height: auto; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.custom-logo { max-height: 46px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 38px); }
.main-nav li a { position: relative; display: inline-block; padding: 8px 0; font: 400 .8rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(252, 249, 240, .92); transition: color .3s; }
.main-nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.main-nav li a:hover, .main-nav .current-menu-item > a { color: var(--gold-l); }
.main-nav li a:hover::after, .main-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; position: relative; z-index: 3; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--gold); transition: transform .6s var(--ease), opacity .3s, top .6s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 22px; } .nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1060px) {
	.hdr-cta { display: none; }
	.nav-toggle { display: block; }
	.main-nav { position: fixed; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 34px; padding: 90px 30px 40px; background: radial-gradient(circle at 50% 30%, var(--g600), var(--g900) 70%); clip-path: circle(0 at calc(100% - 44px) 40px); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
	.main-nav::before { content: ""; position: absolute; inset: 0; background: url("assets/pattern.svg") center/96px; opacity: .06; pointer-events: none; }
	.main-nav.open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
	.main-nav ul { flex-direction: column; align-items: center; gap: 4px; position: relative; }
	.main-nav li a { font: 300 clamp(2rem, 8vw, 2.8rem) var(--serif); letter-spacing: .02em; text-transform: none; padding: 6px 0; color: var(--paper); opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s; }
	.main-nav.open li a { opacity: 1; transform: none; }
	.main-nav.open li:nth-child(1) a { transition-delay: .25s; } .main-nav.open li:nth-child(2) a { transition-delay: .32s; } .main-nav.open li:nth-child(3) a { transition-delay: .39s; } .main-nav.open li:nth-child(4) a { transition-delay: .46s; } .main-nav.open li:nth-child(5) a { transition-delay: .53s; }
	.nav-cta-mobile { display: inline-flex; position: relative; }
}

/* Fortschrittsbalken */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1001; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; }
body.admin-bar .progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .progress { top: 46px; } }

/* Nach oben */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 800; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(18, 36, 13, .85); color: var(--gold); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s, transform .6s var(--ease), background .3s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.to-top .ico { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--g900); }

/* ==========================================================================
   7. Intro (nur beim ersten Besuch pro Sitzung)
   ========================================================================== */
.intro { display: none; }
.has-intro .intro {
	display: grid; place-items: center; position: fixed; inset: 0; z-index: 10000; background: radial-gradient(circle at 50% 42%, #3a6a2b 0%, var(--g600) 38%, var(--g900) 100%);
	border-bottom-left-radius: 50% 9vh; border-bottom-right-radius: 50% 9vh;
	animation: introOut 1.05s var(--ease-io) 3.2s forwards;
}
.has-intro .intro::before { content: ""; position: absolute; inset: 0; background: url("assets/pattern.svg") center/110px; opacity: .07; }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: introInner .7s ease 3s forwards; }
.intro-mark { width: min(36vw, 190px); height: auto; overflow: visible; }
.intro-mark path { fill: var(--gold); fill-opacity: 0; stroke: var(--gold-l); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: introDraw 2s var(--ease-io) .2s forwards, introFill 1s ease 1.6s forwards; }
.intro-word { width: min(62vw, 340px); height: auto; opacity: 0; transform: translateY(14px); animation: introUp 1s var(--ease) 1.7s forwards; }
.intro-tag { font: 300 .8rem var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--gold-l); opacity: 0; animation: introUp 1s var(--ease) 2.1s forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes introUp { to { opacity: 1; transform: none; } }
@keyframes introInner { to { opacity: 0; transform: scale(1.04); } }
@keyframes introOut { 0% { transform: translateY(0); } 99% { transform: translateY(-104%); } 100% { transform: translateY(-104%); visibility: hidden; } }

/* ==========================================================================
   8. Einblend-Effekte (nur mit JavaScript)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.2s var(--ease), clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0ms); }
.js [data-reveal="up"], .js [data-reveal=""] { transform: translate3d(0, 44px, 0); }
.js [data-reveal="left"] { transform: translate3d(-64px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(64px, 0, 0); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero-Einblendung: wartet auf das Ende des Intros */
.js [data-hero] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); transition-delay: calc(var(--i, 1) * 130ms); animation: heroFailsafe .01s 7s forwards; }
.js.is-ready [data-hero] { opacity: 1; transform: none; }
.js .hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.js .hero-title .line > span { display: block; transform: translate3d(0, 110%, 0); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 1) * 130ms + 100ms); }
.js .hero-title .line[data-hero] { opacity: 1; transform: none; }
.js.is-ready .hero-title .line > span { transform: none; }
.js .hero-title .line > span { animation: heroFailsafe .01s 7s forwards; }
@keyframes heroFailsafe { to { opacity: 1; transform: none; } }

/* Seitenübergang */
body { animation: pageIn .8s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity .38s ease; }
body.is-leaving .site-header { transform: none; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { position: relative; background: var(--g900); color: rgba(252, 249, 240, .78); padding: clamp(70px, 9vw, 120px) 0 28px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.foot-pattern { position: absolute; inset: 0; background: url("assets/pattern.svg") center/110px; opacity: .045; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.site-footer .container { position: relative; }
.foot-brand { display: flex; justify-content: center; margin-bottom: clamp(40px, 6vw, 70px); }
.foot-brand img { width: clamp(150px, 18vw, 220px); height: auto; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 64px; text-align: center; }
.site-footer h4 { font: 500 .78rem var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4em; }
.site-footer p { margin: 0 0 .5em; }
.foot-link { position: relative; color: var(--paper); background: linear-gradient(var(--gold), var(--gold)) 0 100%/0 1px no-repeat; transition: background-size .6s var(--ease), color .3s; padding-bottom: 2px; }
.foot-link:hover { background-size: 100% 1px; color: var(--gold-l); }
.foot-social { display: flex; gap: 20px; justify-content: center; margin-top: 12px; }
.foot-hours { display: flex; justify-content: space-between; gap: 18px; max-width: 320px; margin: 0 auto; padding: 6px 0; border-bottom: 1px solid rgba(201, 163, 53, .16); font-size: .93rem; }
.foot-hours span:last-child { color: var(--paper); text-align: right; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 30px; padding-top: 26px; border-top: 1px solid rgba(201, 163, 53, .2); font-size: .82rem; letter-spacing: .04em; }
.foot-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.foot-menu a:hover, .footer-credit a:hover { color: var(--gold-l); }
.footer-credit a { color: var(--gold); border-bottom: 1px solid rgba(201, 163, 53, .5); }
@media (max-width: 820px) {
	.foot-grid { grid-template-columns: 1fr; gap: 38px; }
	.foot-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* ==========================================================================
   10. Reduzierte Bewegung
   ========================================================================== */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.reduce-motion [data-reveal], .reduce-motion [data-hero] { opacity: 1 !important; transform: none !important; }
.reduce-motion .hero-title .line > span { transform: none !important; }
.reduce-motion .orn i { transform: none !important; } .reduce-motion .orn svg { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
