/* brenjo.de – Gestaltung wie die Seite von 2012 (Design: Jan Schöne, Web & Design), neu aufgesetzt */

@font-face { font-family: 'GabrielleRegular'; src: url('/assets/fonts/Gabrielle-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'nexalight'; src: url('/assets/fonts/nexa_light-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'nexabook'; src: url('/assets/fonts/nexa_book-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }

:root {
	--gruen: #54a200;
	--gruen-dunkel: #448300;
	--text: #555;
	--kasten: #e6e6e6;
}

* { margin: 0; padding: 0; border: 0; box-sizing: border-box; }

body {
	font-family: nexalight, Arial, Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: #f2f2f2 url(/assets/design/body_bg.gif);
}

h3, h4 { font-family: nexabook, Arial, Tahoma, sans-serif; font-weight: normal; margin-bottom: 0.7em; line-height: 1.3; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p, ul, ol, table { margin-bottom: 0.7em; }
ul, ol { margin-left: 2em; }
strong, b { font-family: nexabook, Arial, sans-serif; font-weight: normal; }
a { color: var(--gruen); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.klein { font-size: 13px; }
.unterschrift { font-family: GabrielleRegular, Georgia, serif; font-size: 24px; }

/* ---- Kopf ---- */
#wrapper { padding: 1em; }
#header { position: relative; }
#header .name { font-family: GabrielleRegular, Georgia, serif; font-size: 34px; color: var(--gruen); text-decoration: none; display: inline-block; padding: 0 0 0.3em; }

#image { position: relative; aspect-ratio: 1000 / 390; background: #ccc center / cover no-repeat; border-radius: 3px; }
#image .slogan {
	position: absolute; left: 0; right: 0; bottom: 0;
	font-family: nexabook, Arial, sans-serif; font-size: 18px; color: #464646; text-align: right;
	padding: 0.4em 1em;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* ---- Menü ---- */
#menu { position: relative; margin: 1em 0; }
.menu-btn { display: flex; align-items: center; gap: 10px; background: none; font: inherit; font-size: 16px; color: #222; cursor: pointer; padding: 6px 0; }
.menu-btn span.striche { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn span.striche i { display: block; width: 20px; height: 3px; background: #000; }
#menu ul { display: none; list-style: none; margin: 0; background: #eee; padding: 0.5em 0; border-radius: 3px; }
#menu.offen ul { display: block; }
#menu li a { display: block; text-align: center; padding: 0.35em 0; color: #222; font-family: GabrielleRegular, Georgia, serif; font-size: 24px; text-decoration: none; }
#menu li a span { display: none; }
#menu li a.current { color: var(--gruen); background: #fefefe; }

/* ---- Inhalt ---- */
#content { background: var(--kasten); padding: 1em; border-radius: 3px; }
.kasten { padding: 1em; margin-bottom: 1em; box-shadow: inset 0 0 100px #fff, 0 0 4px #222; border-radius: 3px; }
.kasten > :last-child { margin-bottom: 0; }
.kasten::after { content: ''; display: block; clear: both; }
img.links { float: left; margin: 0 20px 15px 0; max-width: min(40%, 170px); }
img.rechts { float: right; margin: 0 0 15px 20px; max-width: min(40%, 170px); }
img.mitte { display: block; margin: 0 auto 1em; }
hr { border-top: 1px dashed #999; margin: 1em 0; }

.knopf, .buy_link {
	display: inline-block; text-align: center; cursor: pointer;
	font: inherit; font-size: 15px; color: var(--gruen); text-shadow: 1px 1px 0 #fff;
	padding: 10px 20px; min-width: 200px;
	background: var(--kasten); border-radius: 10px;
	box-shadow: inset 0 0 30px #fff, 0 0 4px #222;
}
.knopf:hover, .buy_link:hover { text-decoration: none; color: var(--gruen-dunkel); }
.knoepfe { display: flex; flex-wrap: wrap; gap: 15px 30px; margin: 1em 0 1.5em; }

/* ---- Fuß ---- */
#footer { padding: 10px 0; }
#footer p { margin: 0; font-size: 12px; text-align: right; }

/* ---- Formular ---- */
.kontaktformular label { display: block; margin-bottom: 10px; }
.kontaktformular input[type=text], .kontaktformular input[type=email], .kontaktformular input[type=tel], .kontaktformular textarea {
	display: block; width: 100%; max-width: 380px; margin-top: 3px; background: #fff; border: 1px solid #555; padding: 5px 7px; font: inherit; font-size: 14px;
}
.kontaktformular input:focus, .kontaktformular textarea:focus { outline: none; box-shadow: 0 0 5px #222; }
.kontaktformular .haken { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.kontaktformular .haken input { margin-top: 4px; }
.kontaktformular .versteckt { position: absolute; left: -9999px; }
.formular-fehler { color: #c00; }
.formular-danke { padding: 1em; background: #fff; border-radius: 6px; }

/* ---- Orakelkarten: Fächer, Mischen, Umdrehen ---- */
/* Kartentisch: Fächer, Knöpfe und Zähler immer untereinander und mittig */
.orakel {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
	max-width: 560px; margin: 1.2em auto 1.8em; padding: 30px 18px 24px; border-radius: 14px;
	background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #eef4f9 55%, #dbe6ef 100%);
	box-shadow: inset 0 0 40px #fff, 0 0 4px #222;
	overflow: hidden;   /* beim Mischen nichts über den Rand schieben */
}
.orakel-faecher { --w: 112px; position: relative; width: 100%; max-width: 300px; height: calc(var(--w) * 600 / 362 + 50px); flex: 0 0 auto; }
.orakel-ruecken {
	position: absolute; left: calc(50% - var(--w) / 2); bottom: 30px; width: var(--w); aspect-ratio: 362 / 600;
	background: #dfe9f2 url(/assets/design/orakel-rueckseite.jpg) center / cover; border-radius: 8px;
	border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
	transform-origin: 50% 120%;
	transform: rotate(calc((var(--i) - 2) * 9deg));
	transition: transform .4s ease, filter .6s, opacity .6s;
}
.orakel:not(.leer) .orakel-faecher:hover .orakel-ruecken { transform: rotate(calc((var(--i) - 2) * 11deg)); }
.orakel.mischt .orakel-ruecken { animation: orakel-mischen 1.2s ease-in-out; }
.orakel.mischt .orakel-ruecken:nth-child(odd) { animation-name: orakel-mischen-andersrum; }
.orakel.zieht .orakel-ruecken:last-child { transform: translateY(-34px); animation: orakel-heben .8s ease-in-out infinite alternate; }
.orakel.leer .orakel-ruecken { filter: grayscale(.8); opacity: .45; }
@keyframes orakel-mischen {
	0% { transform: rotate(calc((var(--i) - 2) * 9deg)); }
	25% { transform: translateX(-70px) rotate(-14deg); }
	50% { transform: translateX(10px) rotate(4deg); }
	75% { transform: translateX(-40px) rotate(-8deg); }
	100% { transform: rotate(calc((var(--i) - 2) * 9deg)); }
}
@keyframes orakel-mischen-andersrum {
	0% { transform: rotate(calc((var(--i) - 2) * 9deg)); }
	25% { transform: translateX(70px) rotate(14deg); }
	50% { transform: translateX(-10px) rotate(-4deg); }
	75% { transform: translateX(40px) rotate(8deg); }
	100% { transform: rotate(calc((var(--i) - 2) * 9deg)); }
}
@keyframes orakel-heben { from { transform: translateY(-20px); } to { transform: translateY(-40px); } }

.orakel-steuerung { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.orakel-steuerung .knoepfe { margin: 0; justify-content: center; gap: 12px 20px; width: 100%; }
.orakel-steuerung .knopf { flex: 0 1 220px; min-width: 0; }
.orakel-ruhe { max-width: 26em; margin: 0; }
.knopf:disabled { opacity: .45; cursor: default; color: #777; }
.orakel-zaehler { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; }
.orakel-text { white-space: nowrap; }
@media only screen and (min-width: 980px) {
	.orakel { padding: 36px 30px 28px; }
	.orakel-faecher { --w: 136px; max-width: 360px; }
}
@media only screen and (max-width: 420px) {
	.orakel-steuerung .knopf { flex-basis: 100%; }
}
.orakel-punkte { display: inline-flex; gap: 6px; }
.orakel-punkte i { display: block; width: 14px; height: 22px; border-radius: 3px; border: 2px solid #9fb6c9; background: transparent; transition: background .4s; }
.orakel-punkte i.frei { background: linear-gradient(160deg, #cfe0ee, #7fa3c2); border-color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.orakel-ruhe { font-style: italic; }

.orakel-dialog { margin: auto; border: none; background: transparent; overflow: visible; padding: 0; }
.orakel-dialog::backdrop { background: rgba(20, 30, 40, .78); backdrop-filter: blur(3px); }
.orakel-karte { position: relative; height: min(78vh, 600px); aspect-ratio: 362 / 600; perspective: 1400px; }
.orakel-karte .seite {
	position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,.6); transition: transform 1s cubic-bezier(.3,.7,.3,1);
}
.orakel-karte .rueck { background: url(/assets/design/orakel-rueckseite.jpg) center / cover; transform: rotateY(0); }
.orakel-karte .vorn { transform: rotateY(-180deg); background: #fff; }
.orakel-karte .vorn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.orakel-karte.offen .rueck { transform: rotateY(180deg); }
.orakel-karte.offen .vorn { transform: rotateY(0); }
.orakel-dialog[open] .orakel-karte { animation: orakel-auftauchen .45s ease-out; }
@keyframes orakel-auftauchen { from { transform: translateY(40px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.orakel-dialog form { text-align: center; margin-top: 14px; }
.orakel-dialog button { background: #fff; color: #222; border-radius: 20px; padding: 7px 22px; font: inherit; cursor: pointer; text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
	.orakel-ruecken, .orakel-karte .seite { transition: none; }
	.orakel.mischt .orakel-ruecken, .orakel.zieht .orakel-ruecken:last-child, .orakel-dialog[open] .orakel-karte { animation: none; }
}

/* ---- Kundenbereich ---- */
.aufnahme { background: #fff; border-radius: 6px; padding: 14px 16px; margin-bottom: 14px; }
.aufnahme h4 { margin-bottom: 0.2em; }
.aufnahme .angaben { font-size: 13px; color: #777; margin-bottom: 0.6em; }
.aufnahme audio { width: 100%; margin-bottom: 0.6em; }

/* ---- große Bildschirme: Aufteilung wie früher ---- */
@media only screen and (min-width: 980px) {
	body { font-size: 14px; }
	#wrapper { padding: 15px 0 0; background: url(/assets/design/wrapper_bg.png) no-repeat center 15px; }
	@media (min-resolution: 2dppx) { #wrapper { background-image: url(/assets/design/wrapper_bg@2x.png); background-size: 1125px 420px; } }
	#header { height: 20px; }
	#header .name { position: absolute; left: -9999px; }
	#image, #menu, #content { width: 1000px; margin-left: auto; margin-right: auto; box-shadow: 0 0 4px #222; }
	#image { height: 390px; aspect-ratio: auto; background-size: 1000px 390px; }
	#image .slogan { height: 60px; font-size: 30px; line-height: 2em; padding: 0 30px 0 0; text-shadow: 1px 1px 0 #fff; border-radius: 0 0 3px 3px; }
	h3, h4, p, label, ul, ol, #menu li a { text-shadow: 1px 1px 0 #fff; }
	#menu { height: 68px; margin-top: 20px; margin-bottom: 20px; background: url(/assets/design/menu_bg.gif); border-radius: 3px; }
	.menu-btn { display: none; }
	#menu ul, #menu.offen ul { display: flex; width: 960px; margin: 0 auto; background: none; padding: 0; }
	#menu li a { height: 63px; text-align: left; font-size: 28px; line-height: 1.1; color: #555; padding: 7px 15px 0 10px; background: none; transition: color .5s; }
	#menu li a span { display: inline; font-family: nexalight, Arial, sans-serif; font-size: 11px; color: #6e6e6e; text-shadow: none; }
	#menu li a:hover, #menu li a.current { color: var(--gruen); background: none; text-decoration: none; }
	#content { min-height: 500px; padding: 30px 30px 1px; }
	.kasten { padding: 20px; margin-bottom: 30px; }
	.spalten { display: flex; justify-content: space-between; align-items: stretch; }
	.spalten > .kasten { width: 455px; min-height: 525px; }
	#footer { width: 1000px; margin: 0 auto 10px; padding: 10px 30px; }
}
