/*===================================================
	hanneshofer.com – Startseite
	Vollbild mit wechselndem Text,
	links unten Social + Sprache, rechts unten Kontakt.
===================================================*/

:root{
	--acc:   #5e9e9f;
	--acc-2: #7fc3c4;
	--fg:    #ffffff;
	--fg-2:  #b9bfc2;
	--fg-3:  #8b9295;
	--bg:    #0b0d0f;
	--line:  rgba(255,255,255,.14);
	--ease:  cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing: border-box;}
html{height: 100%; overflow-x: hidden;}
body{
	margin: 0;
	min-height: 100%;
	background-color: var(--bg);
	color: var(--fg);
	font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	letter-spacing: .8px;
	-webkit-font-smoothing: antialiased;
}
h1,h2{font-family: "Montserrat", "Mulish", sans-serif; font-weight: 500; margin: 0; line-height: 1.4;}
p{margin: 0 0 1em;}
a{color: inherit; text-decoration: none;}
ul{margin: 0; padding: 0; list-style: none;}
button, input, textarea{font: inherit; color: inherit;}
::selection{background: var(--acc); color: #04110f;}
:focus-visible{outline: 2px solid var(--acc-2); outline-offset: 3px;}

.skip{position: absolute; left: -9999px;}
.skip:focus{left: 16px; top: 16px; z-index: 60; background: var(--acc); color: #04110f; padding: 10px 16px;}

/*--- BÜHNE ----------------------------------------*/
.stage{
	position: relative;
	width: 100%;
	min-height: 100svh;
	overflow: hidden;
}
.stage_img{
	position: absolute;
	top: 0; bottom: 0; left: 0; right: 0;
	background-image: url('../img/slider/6.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.stage_veil{
	position: absolute;
	top: 0; bottom: 0; left: 0; right: 0;
	background: linear-gradient(180deg, rgba(11,13,15,.35) 0%, rgba(11,13,15,.15) 45%, rgba(11,13,15,.75) 100%);
	z-index: 1;
}

/*--- NAME + WECHSELNDER TEXT ----------------------*/
.stage_content{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 100%;
	padding: 0 20px;
	text-align: center;
	z-index: 3;
}
.stage_content h1{
	color: #fff;
	text-transform: uppercase;
	font-size: 45px;
	font-weight: 700;
	margin-bottom: 9px;
}
.stage_content h1 span{color: var(--acc);}
.typing{
	color: #fff;
	font-size: 19px;
	font-family: "Montserrat", "Mulish", sans-serif;
	margin: 0;
	min-height: 2em;
}
.typing .s1{font-weight: 500;}
.typed-cursor{opacity: 1; animation: blink .8s infinite;}

/*--- LAUFBAND (Projekte) --------------------------*/
.ticker{
	position: absolute;
	left: 0; right: 0; top: 0;
	z-index: 4;
	height: 46px;
	display: flex;
	align-items: center;
	overflow: hidden;
	border-bottom: 1px solid rgba(255,255,255,.09);
	background: linear-gradient(180deg, rgba(6,8,9,.55) 0%, rgba(6,8,9,0) 100%);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.ticker_track{
	display: flex;
	width: max-content;
	animation: ticker 68s linear infinite;
}
.ticker_group{display: flex; align-items: center;}
/* Anhalten beim Drüberfahren – und bei Tastaturbedienung (Klasse aus dem Script) */
.ticker:hover .ticker_track,
.ticker.is_paused .ticker_track{animation-play-state: paused;}

.tk{
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1.1px;
	line-height: 1;
	color: rgba(255,255,255,.52);
	transition: color .25s var(--ease);
}
.tk:hover{color: #fff;}
.tk:before{
	content: '';
	width: 0; height: 0;
	margin-right: 8px;
	border-left: 5px solid currentColor;
	border-top: 3.5px solid transparent;
	border-bottom: 3.5px solid transparent;
	opacity: .55;
	transition: opacity .25s var(--ease);
}
.tk[data-type="image"]:before{
	width: 5px; height: 5px;
	margin-right: 9px;
	border: 1px solid currentColor;
	border-radius: 1px;
}
.tk:hover:before{opacity: 1;}
.tk:after{
	content: '·';
	margin: 0 20px;
	color: var(--acc);
	opacity: .65;
	pointer-events: none;
}

/*--- ECKEN ----------------------------------------*/
.corner{
	position: absolute;
	bottom: 34px;
	z-index: 5;
}
.corner.left{left: 40px;}
.corner.right{right: 40px;}

/* Rechte Ecke: LinkedIn, Trennstrich, Kontakt – in einer Reihe */
.corner_row{
	display: flex;
	align-items: center;
	gap: 13px;
}
.li_icon{
	display: inline-flex;
	align-items: center;
	/* Gleiche Farbe wie der Kontakt-Knopf. Die Deckkraft liegt etwas
	   darunter, weil eine ausgefüllte Form bei gleichem Wert kräftiger
	   wirkt als dünne Schrift – so sehen beide gleich stark aus. */
	color: var(--fg-2);
	opacity: .86;
	padding-bottom: 4px;
	transition: color .3s var(--ease), opacity .3s var(--ease);
}
.li_icon:hover{color: #fff; opacity: 1;}
.li_icon svg{width: 14px; height: 14px; fill: currentColor;}
.corner_row .sep{
	width: 1px;
	height: 15px;
	background: rgba(255,255,255,.28);
	margin-bottom: 4px;
	flex: 0 0 auto;
}

.lang{
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 1px;
	color: var(--fg-3);
	margin: 0;
}
.lang a{
	color: var(--fg-3);
	transition: color .3s var(--ease);
	border-bottom: 1px solid transparent;
}
.lang a:hover{color: var(--fg);}
.lang .on{color: var(--acc);}

.contact_btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 0 4px 0;
	border: 0;
	border-bottom: 1px solid rgba(255,255,255,.22);
	background: none;
	color: var(--fg-2);
	font-family: inherit;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.6;
	cursor: pointer;
	transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact_btn:hover{color: #fff; border-bottom-color: var(--acc);}
.contact_btn svg{width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5;}

/*--- POPUP ----------------------------------------*/
.modal{
	position: fixed;
	top: 0; bottom: 0; left: 0; right: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(6,8,9,.82);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.modal.is_open{display: flex;}
.modal_box{
	--pad-x: 34px;
	--pad-y: 34px;
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90svh;
	overflow-y: auto;
	background: #111417;
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: var(--pad-y) var(--pad-x);
	box-shadow: 0 30px 70px rgba(0,0,0,.5);
	animation: pop .35s var(--ease) both;
}

/* Bildstreifen (Österreich / Schweiz) am Fuß des Popups */
.modal_flag{
	position: relative;
	height: 104px;
	margin: 26px calc(var(--pad-x) * -1) calc(var(--pad-y) * -1);
	background-image: url('../img/flags.jpg');
	background-size: cover;
	background-position: center 45%;
	border-radius: 0 0 4px 4px;
}
.modal_flag:after{
	content: '';
	position: absolute;
	top: 0; bottom: 0; left: 0; right: 0;
	border-radius: 0 0 4px 4px;
	background: linear-gradient(180deg, #111417 0%, rgba(17,20,23,.5) 55%, rgba(17,20,23,.3) 100%);
}
.modal_flag span{
	position: absolute;
	left: var(--pad-x);
	bottom: 11px;
	z-index: 2;
	font-family: "Montserrat", "Mulish", sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0,0,0,.75);
}
.modal_box h2{
	font-size: 26px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 6px;
}
.modal_box h2 span{color: var(--acc);}
.modal_box .intro{
	color: var(--fg-2);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 24px;
}
.modal_close{
	position: absolute;
	top: 12px; right: 12px;
	z-index: 3;
	width: 34px; height: 34px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 3px;
	background: rgba(8,10,12,.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: border-color .3s var(--ease), background .3s var(--ease);
}
.modal_close:hover{border-color: var(--acc); background: rgba(8,10,12,.8);}
.modal_close svg{width: 14px; height: 14px; stroke: #fff; stroke-width: 1.6; fill: none;}

.field{margin-bottom: 14px;}
.field label{
	display: block;
	font-family: "Montserrat", "Mulish", sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--fg-3);
	margin-bottom: 6px;
	line-height: 1.6;
}
.field input, .field textarea{
	width: 100%;
	background: #0b0d0f;
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: .4px;
	transition: border-color .3s var(--ease);
}
.field textarea{min-height: 110px; resize: vertical;}
.field input::placeholder, .field textarea::placeholder{color: var(--fg-3);}
.field input:focus, .field textarea:focus{outline: none; border-color: var(--acc);}
.field.has_error input, .field.has_error textarea{border-color: #e54b4b;}
.hp{position: absolute; left: -9999px; top: -9999px;}

.form_msg{
	display: none;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: .4px;
	padding: 11px 13px;
	margin-bottom: 16px;
	border-radius: 3px;
}
.form_msg.is_on{display: block;}
.form_msg.ok{color: var(--acc-2); background: rgba(94,158,159,.12); border: 1px solid rgba(94,158,159,.4);}
.form_msg.err{color: #ffb3b3; background: rgba(229,75,75,.12); border: 1px solid rgba(229,75,75,.4);}

.modal_actions{
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin-top: 6px;
	flex-wrap: wrap;
}
.send{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 26px;
	border: 1px solid var(--acc);
	border-radius: 3px;
	background: var(--acc);
	color: #04110f;
	font-family: "Montserrat", "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease);
}
.send:hover{background: transparent; color: var(--acc-2);}
.send:disabled{opacity: .55; cursor: default;}
.send svg{width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6;}

/* Zweiter Weg neben dem Senden-Knopf, gleiche Höhe, ruhigere Farbe */
.send.alt{
	background: none;
	color: var(--fg-2);
	border-color: var(--line);
	padding: 13px 22px;
}
.send.alt:hover{border-color: var(--acc); color: #fff; background: rgba(94,158,159,.14);}
.send.alt svg{width: 15px; height: 15px; fill: currentColor; stroke: none;}

/*--- PROJEKT-ANSICHT (Video / Foto) ---------------*/
.viewer{
	position: fixed;
	top: 0; bottom: 0; left: 0; right: 0;
	z-index: 110;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 60px);
	background: rgba(4,6,7,.93);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.viewer.is_open{display: flex; animation: viewer_in .35s var(--ease) both;}
.viewer.is_closing{animation: viewer_out .25s var(--ease) both;}
.viewer_stage{
	position: relative;
	width: min(1180px, 100%);
}
.viewer.is_open .viewer_stage{animation: stage_in .45s var(--ease) both;}
.viewer.is_closing .viewer_stage{animation: stage_out .25s var(--ease) both;}
.viewer_stage img{
	width: 100%;
	max-height: 78svh;
	object-fit: contain;
	border-radius: 3px;
	display: block;
}
.viewer_stage .ratio{
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 3px;
	overflow: hidden;
}
.viewer_stage iframe,
.viewer_video{
	position: absolute;
	top: 0; bottom: 0; left: 0; right: 0;
	width: 100%; height: 100%;
	border: 0;
	background: #000;
	display: block;
}

/* Erscheint nur, wenn der Browser den Ton verweigert hat und das Video stumm läuft */
.unmute{
	position: absolute;
	left: 50%;
	bottom: 16%;
	transform: translateX(-50%);
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 18px;
	border: 1px solid rgba(255,255,255,.45);
	border-radius: 3px;
	background: rgba(6,8,9,.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	font-family: "Montserrat", "Mulish", sans-serif;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.unmute:before{
	content: '';
	width: 0; height: 0;
	border-left: 7px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}
.unmute:hover{background: var(--acc); border-color: var(--acc); color: #04110f;}

.viewer_cap{
	margin: 14px 0 0;
	font-family: "Montserrat", "Mulish", sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--fg-3);
	text-align: center;
}
.viewer_cap b{color: #fff; font-weight: 500;}
.viewer_head{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin-bottom: 14px;
}
.viewer_kicker{
	margin: 0;
	padding: 0 46px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 400;
	letter-spacing: .6px;
	line-height: 1.5;
	color: rgba(255,255,255,.82);
}
.viewer_close{
	position: absolute;
	top: 0; right: 0;
	width: 34px; height: 34px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 3px;
	background: rgba(8,10,12,.5);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: border-color .3s var(--ease), background .3s var(--ease);
}
.viewer_close:hover{border-color: var(--acc); background: rgba(8,10,12,.85);}
.viewer_close svg{width: 14px; height: 14px; stroke: #fff; stroke-width: 1.6; fill: none;}

/*--- KEYFRAMES ------------------------------------*/
@keyframes blink{0%,49%{opacity: 1}50%,100%{opacity: 0}}
@keyframes pop{from{opacity: 0; transform: translateY(14px)}to{opacity: 1; transform: none}}
@keyframes ticker{from{transform: translateX(0)}to{transform: translateX(-50%)}}
@keyframes viewer_in{from{opacity: 0}to{opacity: 1}}
@keyframes viewer_out{from{opacity: 1}to{opacity: 0}}
@keyframes stage_in{from{opacity: 0; transform: scale(.94) translateY(14px)}to{opacity: 1; transform: none}}
@keyframes stage_out{from{opacity: 1; transform: none}to{opacity: 0; transform: scale(.97)}}

/*--- RESPONSIVE -----------------------------------*/
@media (max-width: 768px){
	.stage_content h1{font-size: 25px;}
	.typing{font-size: 15px;}
	.ticker{height: 40px;}
	.tk{font-size: 11px;}
	.tk:after{margin: 0 15px;}
	.corner{bottom: 26px;}
	.corner.left{left: 24px;}
	.corner.right{right: 24px;}
	.modal_box{--pad-x: 22px; --pad-y: 22px;}
	.modal_flag{height: 82px;}
	.viewer_kicker{font-size: 12px; padding: 0 42px;}
}
@media (max-width: 420px){
	.corner.right{text-align: right;}
}

@media (prefers-reduced-motion: reduce){
	*,*::before,*::after{animation-duration: .001ms !important; transition-duration: .001ms !important;}
	.typed-cursor{animation: none;}
	/* Statt Laufband: von Hand seitlich scrollbar */
	.ticker{overflow-x: auto;}
	.ticker_track{animation: none;}
}
