/* =========================================================
   1) ORIGINAL-KARTEN-CODE (von rikanutyy) – unverändert
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');

body {
	font-family: 'Gloria Hallelujah', cursive !important;
  background: #FDE3A7; /*CAPE HONEY*/
	margin: 0px;
	padding: 0px;
}

::selection {
	background: transparent;
}

h4 {
	font-size: 21px;
	line-height: 1.15;
	font-family: 'Gloria Hallelujah', cursive !important;
}

.color1{color:#1BBC9B}/*MOUNTAIN MEADOW*/
.color2{color:#C0392B/*TALL POPPY*/}


.card {
	color: #013243; /*SHERPA BLUE*/
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 400px;
	background: #e0e1dc;
	transform-style: preserve-3d;
	transform: translate(-50%,-50%) perspective(2000px);
	box-shadow: inset 300px 0 50px rgba(0,0,0,.5), 20px 0 60px rgba(0,0,0,.5);
	transition: 1s;
}

.card:hover {
	transform: translate(-50%,-50%) perspective(2000px) rotate(15deg) scale(1.2);
	box-shadow: inset 20px 0 50px rgba(0,0,0,.5), 0 10px 100px rgba(0,0,0,.5);
}

.card:before {
	content:'';
	position: absolute;
	top: -5px;
	left: 0;
	width: 100%;
	height: 5px;
	background: #BAC1BA;
	transform-origin: bottom;
	transform: skewX(-45deg);
}

.card:after {
	content: '';
	position: absolute;
	top: 0;
	right: -5px;
	width: 5px;
	height: 100%;
	background: #92A29C;
	transform-origin: left;
	transform: skewY(-45deg);
}

.card .imgBox {
	width: 100%;
	height: 100%;
	position: relative;
	transform-origin: left;
	transition: .7s;
}

.card .bark {
	position: absolute;
	background: #e0e1dc;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: .7s;
}

.card .imgBox img {
	min-width: 250px;
	max-height: 400px;
}

.card:hover .imgBox {
	transform: rotateY(-135deg);
}

.card:hover .bark {
	opacity: 1;
	transition: .6s;
  box-shadow: 300px 200px 100px rgba(0, 0, 0, .4) inset;
}

.card .details {
	position: absolute;
	top: 0;
	left: 0;
	box-sizing: border-box;
	padding: 0 0 0 10px;
	z-index: -1;
	margin-top: 70px;
}

.card .details p {
	font-size: 15px;
	line-height: 5px;
	transform: rotate(-10deg);
	padding: 0 0 0 20px;
}

.card .details h4 {
	text-align: center;
}

.text-right {
	text-align: right;
}
/* by rikanutyy */

/* ---------- Karten-Innentext lesbar (überschreibt die enge Original-Schrift) ---------- */
.card .details {
	margin-top: 18px;
	padding: 0 16px;
	box-sizing: border-box;
}
.card .details h4.color1 {
	text-align: left;
	line-height: 1.05;
	margin: 0 0 8px;
}
.card .details p {
	font-size: 13px;
	line-height: 1.42;
	transform: none;
	padding: 0;
	margin: 0 0 9px;
	text-align: left;
}

/* ---------- Paket IN der Karte ---------- */
/* Details beim Öffnen nach vorne holen, damit das Paket klickbar ist */
.card.flip .details,
.card:hover .details { z-index: 1; }

.card-present {
	display: block;
	width: calc(100% - 20px);
	margin: 8px 0 0;
	padding: 6px 0;
	border: none;
	background: transparent;
	font-family: 'Gloria Hallelujah', cursive;
	color: var(--blue);
	cursor: pointer;
	transform: rotate(-6deg);
	transition: transform .15s ease;
}
.card-present:hover { transform: rotate(-6deg) scale(1.06); }
.card-present .cp-box {
	display: block;
	font-size: 42px;
	line-height: 1;
	animation: cpbob 1.6s ease-in-out infinite;
}
.card-present .cp-label {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 400;
	color: var(--poppy);
}
@keyframes cpbob {
	0%, 100% { transform: translateY(0) rotate(0); }
	50%      { transform: translateY(-4px) rotate(4deg); }
}


/* =========================================================
   2) WEBSITE-HÜLLE (additiv – verändert die Karte nicht)
   ========================================================= */
:root {
	--honey: #FDE3A7;
	--meadow: #1BBC9B;
	--poppy: #C0392B;
	--blue: #013243;
}

body {
	min-height: 100vh;
	overflow-x: hidden;
	color: var(--blue);
}

.margin { margin-bottom: 24px; }

/* ---------- Hero ---------- */
.hero {
	text-align: center;
	padding: 22px 16px 0;
	position: relative;
	z-index: 2;
}

.hero h1 {
	font-family: 'Gloria Hallelujah', cursive;
	font-weight: 400;
	font-size: clamp(18px, 4vw, 28px);
	line-height: 1.32;
	margin: 0 auto;
	max-width: 600px;
	color: var(--blue);
}

.hero .name {
	color: var(--poppy);
	display: inline-block;
	animation: pop 2.2s ease-in-out infinite;
}

@keyframes pop {
	0%, 100% { transform: scale(1) rotate(-2deg); }
	50%      { transform: scale(1.06) rotate(2deg); }
}

.hero .subtitle {
	font-size: clamp(18px, 3vw, 24px);
	margin: 10px 0 0;
	color: var(--meadow);
}

/* ---------- Bühne, damit die absolute Karte sauber zentriert ---------- */
.stage {
	position: relative;
	height: 470px;
}

.hint {
	position: absolute;
	bottom: 6px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 17px;
	color: var(--blue);
	opacity: 0.6;
}

/* Mobile/Tap: gleiche Wirkung wie :hover, ohne den Original-Code zu ändern */
.card.flip {
	transform: translate(-50%,-50%) perspective(2000px) rotate(15deg) scale(1.2);
	box-shadow: inset 20px 0 50px rgba(0,0,0,.5), 0 10px 100px rgba(0,0,0,.5);
}
.card.flip .imgBox { transform: rotateY(-135deg); }
.card.flip .bark {
	opacity: 1;
	box-shadow: 300px 200px 100px rgba(0, 0, 0, .4) inset;
}

/* ---------- Geschenk-Platzhalter (folgt später) ---------- */
.gift-teaser {
	text-align: center;
	padding: 40px 20px 70px;
	position: relative;
	z-index: 2;
}

.gift-teaser h2 {
	font-family: 'Gloria Hallelujah', cursive;
	font-weight: 700;
	font-size: 44px;
	line-height: 1;
	margin: 24px 0 0;
	color: var(--blue);
}

.gift-note {
	font-size: 20px;
	color: var(--meadow);
	margin: 4px 0 0;
}

.gift {
	position: relative;
	width: 120px;
	height: 110px;
	margin: 0 auto;
	animation: wobble 3s ease-in-out infinite;
}

.gift-box {
	position: absolute;
	bottom: 0;
	width: 120px;
	height: 80px;
	background: var(--poppy);
	border-radius: 6px;
}
.gift-box:before {
	content: '';
	position: absolute;
	left: 50px;
	width: 20px;
	height: 100%;
	background: var(--honey);
}

.gift-lid {
	position: absolute;
	top: 22px;
	left: -6px;
	width: 132px;
	height: 26px;
	background: #a93226;
	border-radius: 6px;
	z-index: 2;
}
.gift-lid:before {
	content: '';
	position: absolute;
	top: 0;
	left: 56px;
	width: 20px;
	height: 100%;
	background: var(--honey);
}

.gift-bow {
	position: absolute;
	top: 4px;
	left: 50%;
	width: 40px;
	height: 24px;
	transform: translateX(-50%);
	background: var(--honey);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	z-index: 3;
}
.gift-bow:before,
.gift-bow:after {
	content: '';
	position: absolute;
	bottom: 0;
	width: 22px;
	height: 22px;
	background: var(--honey);
	border-radius: 50%;
}
.gift-bow:before { left: -16px; }
.gift-bow:after  { right: -16px; }

@keyframes wobble {
	0%, 100% { transform: rotate(-3deg); }
	50%      { transform: rotate(3deg); }
}

/* ---------- Footer ---------- */
footer {
	text-align: center;
	padding: 20px;
	font-size: 16px;
	color: var(--blue);
	opacity: 0.7;
	position: relative;
	z-index: 2;
}

/* ---------- Hintergrund-Ballons ---------- */
.balloons {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}
/* Flieger (Ballon oder Plug), per script.js erzeugt – fliegt einmal hoch */
.flyer {
	position: absolute;
	bottom: -170px;
	will-change: transform, opacity;
	animation: float linear 1 forwards;
}

.flyer.balloon {
	width: 46px;
	height: 58px;
	border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
}
.flyer.balloon:after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: inherit;
}

.flyer.plug {
	width: calc(40px * var(--pscale, 1));
	aspect-ratio: 135 / 300;
	background: url('plug.png') center / contain no-repeat;
	filter: drop-shadow(0 4px 6px rgba(0,0,0,.18));
}

@keyframes float {
	0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
	10%  { opacity: 0.7; }
	90%  { opacity: 0.7; }
	100% { transform: translateY(-122vh) translateX(var(--drift, 30px)) rotate(var(--spin, 0deg)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hero .name, .flyer { animation: none; }
}

/* ---------- Mobile: kompakt, ohne viel Scrollen ---------- */
@media (max-width: 600px) {
	.hero h1 { font-size: clamp(16px, 5vw, 22px); }
	.hero .subtitle { font-size: 17px; }
	.stage { height: 440px; margin-top: 30px; }
	/* sanftere Karten-Öffnung, damit nichts am Rand abgeschnitten wird */
	.card:hover, .card.flip {
		transform: translate(-50%, -50%) perspective(2000px) rotate(8deg) scale(1.06);
	}
	footer { padding: 12px; font-size: 14px; }
}

@media (max-width: 600px) and (max-height: 720px) {
	.hero { padding-top: 12px; }
	.stage { height: 408px; margin-top: 18px; }
}
